Skip to content

Commit 97adfcf

Browse files
committed
refactor variable name
1 parent 2efaf6f commit 97adfcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext }
7575

7676
useEffect(() => {
7777
async function autoExecute() {
78-
if (!note || note?.type !== "search" || !note?.hasLabel("autoExecuteSearch")) {
78+
if (!note || note.type !== "search" || !note.hasLabel("autoExecuteSearch")) {
7979
executionState.save("");
8080
return;
8181
}
@@ -182,10 +182,10 @@ export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext }
182182
}
183183

184184
const executionState = function() {
185-
let LAST_AUTO_EXECUTED_SEARCH_NOTE_ID = "";
185+
let lastAutoExecutedSearchNoteId = "";
186186
return {
187-
load: () => LAST_AUTO_EXECUTED_SEARCH_NOTE_ID,
188-
save: (noteId: string) => LAST_AUTO_EXECUTED_SEARCH_NOTE_ID = noteId,
187+
load: () => lastAutoExecutedSearchNoteId,
188+
save: (noteId: string) => lastAutoExecutedSearchNoteId = noteId,
189189
};
190190
}();
191191

0 commit comments

Comments
 (0)