Changeset 958bc89 for components/BuildDetailsDialog.tsx
- Timestamp:
- 12/29/25 04:34:44 (6 months ago)
- Branches:
- main
- Children:
- 41a2f81
- Parents:
- f46bf5c
- File:
-
- 1 edited
-
components/BuildDetailsDialog.tsx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/BuildDetailsDialog.tsx
rf46bf5c r958bc89 1 import React, { useEffect, useState} from 'react';1 import React, {useEffect, useState} from 'react'; 2 2 import { 3 3 Dialog, DialogTitle, DialogContent, DialogActions, Button, Grid, Box, Typography, … … 51 51 }, [open, buildId]); 52 52 53 // Ownership check for edit button54 53 useEffect(() => { 55 54 if (open && buildId !== null && typeof buildId === 'number') { 56 onGetBuildState({ buildId }) // ← Only buildId, no userId!55 onGetBuildState({buildId}) 57 56 .then(state => { 58 57 setIsOwner(!!state); … … 91 90 92 91 try { 93 const newBuildId = await onCloneBuild({ buildId: cloningBuildId});92 const newBuildId = await onCloneBuild({buildId: cloningBuildId}); 94 93 window.location.href = `/forge?buildId=${newBuildId}`; 95 94 setCloneDialogOpen(false);
Note:
See TracChangeset
for help on using the changeset viewer.
