chore: use undefined instead of UNKNOWN_ID

This commit is contained in:
boojack
2022-07-02 15:05:42 +08:00
parent 2fe2b82809
commit 5dd6d505cc
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ const ShortcutContainer: React.FC<ShortcutContainerProps> = (props: ShortcutCont
const handleShortcutClick = () => {
if (isActive) {
locationService.setMemoShortcut(UNKNOWN_ID);
locationService.setMemoShortcut(undefined);
} else {
if (!["/"].includes(locationService.getState().pathname)) {
locationService.setPathname("/");