From a12ed7533b88a2f8ad17e04b2667da42bb9842a1 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 15 Sep 2023 19:09:14 +0530 Subject: [PATCH] Fix broken embeddings dialog when the lora info couldn't be fetched --- ui/plugins/ui/merge.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/plugins/ui/merge.plugin.js b/ui/plugins/ui/merge.plugin.js index 9606d39c..8e74cf61 100644 --- a/ui/plugins/ui/merge.plugin.js +++ b/ui/plugins/ui/merge.plugin.js @@ -733,5 +733,5 @@ })() async function getLoraKeywords(model) { return Bucket.retrieve(`modelinfo/lora/${model}`) - .then((info) => info.keywords) + .then((info) => info ? info.keywords : []) }