mirror of
https://github.com/dnlbauer/obsidian-dataview-autocompletion.git
synced 2026-09-10 22:25:29 +00:00
fix: fix addind a deleted value to index not working
This commit is contained in:
@@ -294,7 +294,10 @@ export class DataviewSuggester extends EditorSuggest<String> {
|
||||
|
||||
// adding value to index if not present in index
|
||||
for (const newCompositeValue of updateCompositeValues) {
|
||||
if (!this.suggestionsRefCount.has(newCompositeValue)) {
|
||||
if (
|
||||
!this.suggestionsRefCount.has(newCompositeValue) ||
|
||||
this.suggestionsRefCount.get(newCompositeValue) === 0
|
||||
) {
|
||||
// not seen in this or other files
|
||||
this.suggestionsList.push(newCompositeValue);
|
||||
this.suggestionsRefCount.set(newCompositeValue, 1);
|
||||
|
||||
Reference in New Issue
Block a user