Skip to content

Commit

Permalink
Unlink saved search
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Aug 13, 2020
1 parent 29c6a31 commit 1741aae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ export const useEditorUpdates = (
} else if (!linked && savedVis && savedVis.savedSearchId) {
delete savedVis.savedSearchId;
delete vis.data.savedSearchId;
} else {
// TODO: something to do for when it's not a saved vis?
} else if (!linked && !savedVis) {
// delete link when it's not a saved vis
delete vis.data.savedSearchId;
}
};

Expand Down

0 comments on commit 1741aae

Please sign in to comment.