Skip to content

Commit

Permalink
refactor: update flowMetabaseLink type
Browse files Browse the repository at this point in the history
- As per: #2387 (comment)
- Update the flowMetabaseLink to handle the query returning null
  • Loading branch information
Mike-Heneghan committed Nov 7, 2023
1 parent cba3f5f commit 6ecabd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor.planx.uk/src/pages/FlowEditor/lib/store/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface SharedStore extends Store.Store {
flow: Store.flow;
flowSlug: string;
flowName: string;
flowMetabaseLink: string;
flowMetabaseLink: string | null;
id: string;
getNode: (id: Store.nodeId) => Store.node | undefined;
resetPreview: () => void;
Expand Down Expand Up @@ -52,7 +52,7 @@ export const sharedStore: StateCreator<

flowName: "",

flowMetabaseLink: "",
flowMetabaseLink: null,

id: "",
previewEnvironment: "standalone",
Expand Down

0 comments on commit 6ecabd0

Please sign in to comment.