Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit cf7ad78

Browse files
we dont need to save threshold if there is no semantic search
1 parent 4f098f4 commit cf7ad78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/stores/Tabs/tab.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,10 @@ export const Tab = types
312312
},
313313

314314
setSemanticSearchThreshold(min, max) {
315-
self.threshold = { min, max };
316-
return self.save();
315+
if (self.semantic_search.length === 0) {
316+
self.threshold = { min, max };
317+
return self.save();
318+
}
317319
},
318320

319321
clearSemanticSearchThreshold(save = true) {

0 commit comments

Comments
 (0)