diff --git a/web/src/components/ShortcutList.tsx b/web/src/components/ShortcutList.tsx index 18716180b..89c5d60a8 100644 --- a/web/src/components/ShortcutList.tsx +++ b/web/src/components/ShortcutList.tsx @@ -76,6 +76,10 @@ const ShortcutContainer: React.FC = (props: ShortcutCont if (showConfirmDeleteBtn) { try { await shortcutService.deleteShortcutById(shortcut.id); + if (locationService.getState().query?.shortcutId === shortcut.id) { + // need clear shortcut filter + locationService.setMemoShortcut(undefined); + } } catch (error: any) { console.error(error); toastHelper.error(error.response.data.message);