Skip to content

Commit 99a0774

Browse files
committed
import fix
1 parent fb39523 commit 99a0774

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/components/Result.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { afterUpdate } from 'svelte';
44
import { runAction } from '../utils';
55
import KeyboardButton from './KeyboardButton.svelte';
6-
import { parseKeybinding } from 'tinykeys';
6+
import * as tinykeys from 'tinykeys';
77
import type { action } from '$lib/types';
88
99
export let action: action;
@@ -32,7 +32,7 @@
3232
};
3333
3434
if (action.shortcut) {
35-
const parsedShortcut = parseKeybinding(action.shortcut);
35+
const parsedShortcut = tinykeys.parseKeybinding(action.shortcut);
3636
formattedShortcut = parsedShortcut.flat().filter((s) => s.length > 0);
3737
}
3838
@@ -41,8 +41,8 @@
4141
paletteStore.update((value) => {
4242
return {
4343
...value,
44-
activeCommandId: action.actionId,
45-
selectedCommandId: action.actionId
44+
activeCommandId: action.actionId || '',
45+
selectedCommandId: action.actionId || ''
4646
};
4747
});
4848
};

0 commit comments

Comments
 (0)