mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: use undefined
instead of UNKNOWN_ID
This commit is contained in:
@ -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("/");
|
||||
|
Reference in New Issue
Block a user