Skip to content

Commit 16c43e9

Browse files
committed
label toggle include imported labels under local parent
1 parent 9ceaecc commit 16c43e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NotesProvider/hooks/useLabels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function useLabels(allNotes: IDecoratedNote[]): [IDecoratedNote[], ILabel
5555
isActive: !x.isActive,
5656
};
5757
}
58-
if (x.label.startsWith(`${label}/`)) {
58+
if (x.label.startsWith(`${label}/`) || (parent?.label === LABEL_LOCAL && x.label.startsWith(LABEL_IMPORTED))) {
5959
return {
6060
...x,
6161
isActive: !parent?.isActive,

0 commit comments

Comments
 (0)