Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: layers pane does not update after move layer or create folder (#259
Browse files Browse the repository at this point in the history
)

add refetchQueries
  • Loading branch information
airslice committed Jun 30, 2022
1 parent ad2c0e3 commit 336d982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/organisms/EarthEditor/OutlinePane/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default () => {
destLayerId,
index: i,
},
refetchQueries: ["GetLayers"],
});
},
[moveLayerMutation],
Expand Down Expand Up @@ -295,6 +296,7 @@ export default () => {
index: layerIndex?.[layerIndex.length - 1],
name: t("Folder"),
},
refetchQueries: ["GetLayers"],
});
}, [rootLayerId, data?.layer, selected, addLayerGroupMutation, t]);

Expand Down

0 comments on commit 336d982

Please sign in to comment.