Skip to content

Commit

Permalink
#875 Update app metadata on importing work from gallery (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekingofcity authored Jan 21, 2025
1 parent 8327d2f commit 8ade31c
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 @@ -48,7 +48,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 @@ -58,7 +58,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 @@ -105,6 +105,8 @@ export default function RmpGalleryAppClip(props: RmpGalleryAppClipProps) {
isClosable: true,
});
}
// clear the search params in rmt, otherwise it will be preserved and re-imported every time
rmgRuntime.updateAppMetadata({ hash: '' });
};

// A one time url match to see if it is a work share link and apply the work if needed.
Expand Down

0 comments on commit 8ade31c

Please sign in to comment.