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

Commit

Permalink
fix: dataset info pane shows its property though after selected datas…
Browse files Browse the repository at this point in the history
…et schema is deleted (#131)
  • Loading branch information
HideBa authored Nov 15, 2021
1 parent 769b866 commit 2307d87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/organisms/EarthEditor/DataSourcePane/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,18 @@ export default () => {
setNotification({ type: "error", text: datasetDeleteMessageFailure });
} else {
setNotification({ type: "info", text: datasetDeleteMessageSuccess });
select(undefined);
}
// re-render
await client.resetStore();
},
[
client,
removeDatasetSchema,
client,
setNotification,
datasetDeleteMessageFailure,
datasetDeleteMessageSuccess,
setNotification,
select,
],
);

Expand Down

0 comments on commit 2307d87

Please sign in to comment.