@@ -66,17 +66,17 @@ export const useStore = defineStore('annotation', {
6666 /** Whether to replace old annotation. */
6767 const index = this . annotations . findIndex ( ( d ) => (
6868 d . type === type
69- && d . subject === subject
70- && (
71- ( ( value === Category . Vis || value === Category . NotVis )
72- && ( d . value === Category . Vis || d . value === Category . NotVis ) )
73- || ( ( value === Category . Map || value === Category . NotMap )
74- && ( d . value === Category . Map || d . value === Category . NotMap ) )
75- || ( ( value === Category . Text || value === Category . NotText )
76- && ( d . value === Category . Text || d . value === Category . NotText ) )
77- || ( ( value === Category . Table || value === Category . NotTable )
78- && ( d . value === Category . Table || d . value === Category . NotTable ) )
79- )
69+ && d . subject === subject
70+ && (
71+ ( ( value === Category . Vis || value === Category . NotVis )
72+ && ( d . value === Category . Vis || d . value === Category . NotVis ) )
73+ || ( ( value === Category . Map || value === Category . NotMap )
74+ && ( d . value === Category . Map || d . value === Category . NotMap ) )
75+ || ( ( value === Category . Text || value === Category . NotText )
76+ && ( d . value === Category . Text || d . value === Category . NotText ) )
77+ || ( ( value === Category . Table || value === Category . NotTable )
78+ && ( d . value === Category . Table || d . value === Category . NotTable ) )
79+ )
8080 ) )
8181 const replace = index !== - 1
8282 const annotation : Annotation = {
@@ -97,8 +97,8 @@ export const useStore = defineStore('annotation', {
9797 /** Whether to replace old annotation. */
9898 const index = this . annotations . findIndex ( ( d ) => (
9999 d . type === type
100- && d . subject === subject
101- && d . value === value
100+ && d . subject === subject
101+ && d . value === value
102102 ) )
103103 if ( index !== - 1 ) {
104104 this . annotations . splice ( index , 1 )
0 commit comments