Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390

Daniel496c44e389bd
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go
index 6ec935baf3..ffe71755b8 100644
--- a/kernel/model/bazzar.go
+++ b/kernel/model/bazzar.go
@@ -84,6 +84,26 @@ func UpdatedPackages(frontend string) (plugins []*bazaar.Plugin, widgets []*baza
}()
wg.Wait()
+
+ if 1 > len(plugins) {
+ plugins = []*bazaar.Plugin{}
+ }
+
+ if 1 > len(widgets) {
+ widgets = []*bazaar.Widget{}
+ }
+
+ if 1 > len(icons) {
+ icons = []*bazaar.Icon{}
+ }
+
+ if 1 > len(themes) {
+ themes = []*bazaar.Theme{}
+ }
+
+ if 1 > len(templates) {
+ templates = []*bazaar.Template{}
+ }
return
}