mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 05:45:04 +00:00
fix: change when difernt scope
This commit is contained in:
parent
0f6499907c
commit
f712231917
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,9 @@ export const useKeyboardNavigation = ({
|
|||
e.preventDefault();
|
||||
const status = filteredStatuses[focusedIndex];
|
||||
const isSelected = currentStatuses.some(
|
||||
(s) => s.name === status.name,
|
||||
(s) =>
|
||||
s.name === status.name &&
|
||||
s.templateId === status.templateId,
|
||||
);
|
||||
if (isSelected) {
|
||||
onRemoveStatus(status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue