mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
Merge pull request #18585 from silentoplayz/fix-ui-freeze-on-mixed-sources
fix: prevent UI freeze by initializing distances array
This commit is contained in:
commit
1f287be27f
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@
|
||||||
source: _source,
|
source: _source,
|
||||||
document: [document],
|
document: [document],
|
||||||
metadata: metadata ? [metadata] : [],
|
metadata: metadata ? [metadata] : [],
|
||||||
distances: distance !== undefined ? [distance] : undefined
|
distances: distance !== undefined ? [distance] : []
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue