From 0443439fae4e7cdb91d052ddf904bda690916241 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:09:50 +1100 Subject: [PATCH] Show error if savedFilterId not present (#3129) --- ui/v2.5/src/components/FrontPage/Control.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/v2.5/src/components/FrontPage/Control.tsx b/ui/v2.5/src/components/FrontPage/Control.tsx index d8e17c4ed..c655d9c3e 100644 --- a/ui/v2.5/src/components/FrontPage/Control.tsx +++ b/ui/v2.5/src/components/FrontPage/Control.tsx @@ -167,6 +167,10 @@ interface IProps { export const Control: React.FC = ({ content }) => { switch (content.__typename) { case "SavedFilter": + if (!(content as ISavedFilterRow).savedFilterId) { + return
Error: missing savedFilterId
; + } + return (