fix: set legacy=false for collection_names format in ModelEditor

The knowledge mapping logic in ModelEditor.svelte unconditionally sets
legacy: true for entries using the collection_names format. But
collection_names is the current format (replacing the old singular
collection_name), so it should not be marked as legacy.

This caused all knowledge collections to display as 'Legacy Collection'
in the Model Editor UI, even when using the current data format.

Fixes #26035
This commit is contained in:
michaelxer 2026-06-15 05:03:33 +07:00
parent f85cb27ef8
commit 6570f43cf1

View file

@ -312,7 +312,7 @@
name: item.name,
type: 'collection',
collection_names: item.collection_names,
legacy: true
legacy: false
};
} else {
return item;