mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
chores: fix compilation
This commit is contained in:
parent
4e7a1e8ab1
commit
32d699f8e0
@ -58,11 +58,8 @@ const DuplicateDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElem
|
|||||||
|
|
||||||
const { map } = fetchMapById(mapId);
|
const { map } = fetchMapById(mapId);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (open && map) {
|
if (map) {
|
||||||
setModel(map);
|
setModel(map);
|
||||||
} else {
|
|
||||||
setModel(defaultModel);
|
|
||||||
setError(undefined);
|
|
||||||
}
|
}
|
||||||
}, [mapId]);
|
}, [mapId]);
|
||||||
|
|
||||||
|
@ -60,11 +60,8 @@ const RenameDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElement
|
|||||||
|
|
||||||
const { map } = fetchMapById(mapId);
|
const { map } = fetchMapById(mapId);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (open && map) {
|
if (map) {
|
||||||
setModel(map);
|
setModel(map);
|
||||||
} else {
|
|
||||||
setModel(defaultModel);
|
|
||||||
setError(undefined);
|
|
||||||
}
|
}
|
||||||
}, [mapId]);
|
}, [mapId]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user