Skip to content

Commit 207a62a

Browse files
committed
Allow moving and copying of systems to systems of different type #1637
1 parent 040dd8d commit 207a62a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/systems/systemDirectoryDialog.component.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ export const SystemDirectoryDialog = (props: SystemDirectoryDialogProps) => {
3636
const { open, onClose, selectedSystems, onChangeSelectedSystems, type } =
3737
props;
3838

39-
const parentSystemTypeId = React.useMemo(() => {
40-
if (selectedSystems.length > 0) {
41-
return selectedSystems[0].type_id;
42-
}
43-
return null;
44-
}, [selectedSystems]);
45-
4639
// Store here and update only if changed to reduce re-renders and allow
4740
// navigation
4841
const [parentSystemId, setParentSystemId] = React.useState<string | null>(
@@ -184,9 +177,6 @@ export const SystemDirectoryDialog = (props: SystemDirectoryDialogProps) => {
184177
systemParentId={parentSystemId ?? undefined}
185178
onChangeParentId={setParentSystemId}
186179
selectedSystems={selectedSystems}
187-
isSystemSelectable={(system: System) => {
188-
return parentSystemTypeId === system.type_id;
189-
}}
190180
type={type}
191181
/>
192182
</DialogContent>

0 commit comments

Comments
 (0)