Skip to content

Commit

Permalink
#875 Update app metadata on importing work from gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
thekingofcity committed Nov 9, 2024
1 parent 32c1057 commit 1919e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/page-header/open-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function OpenActions() {
// details panel will complain about unknown nodes or edges if the last selected is not cleared
dispatch(clearSelected());

// rest graph with new data
// reset graph with new data
graph.current.clear();
graph.current.import(save.graph);

Expand Down
4 changes: 3 additions & 1 deletion src/components/page-header/rmp-gallery-app-clip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function RmpGalleryAppClip(props: RmpGalleryAppClipProps) {
// details panel will complain about unknown nodes or edges if the last selected is not cleared
dispatch(clearSelected());

// rest graph with new data
// reset graph with new data
graph.current.clear();
graph.current.import(save.graph);

Expand Down Expand Up @@ -124,6 +124,8 @@ export default function RmpGalleryAppClip(props: RmpGalleryAppClipProps) {
let host: string | undefined = undefined;
if (firstDotIndex !== -1) host = params.substring(firstDotIndex + 1);
fetchAndApplyTemplate(id, host);
// clear the search params in rmt, otherwise it will be preserved and re-imported every time
rmgRuntime.updateAppMetadata({});
}
}, []);

Expand Down

0 comments on commit 1919e23

Please sign in to comment.