浏览代码

:bug: After uninstalling the plugin, data synchronization does not uninstall it https://github.com/siyuan-note/siyuan/issues/11277

Daniel 1 年之前
父节点
当前提交
d0022293c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/model/repository.go

+ 1 - 1
kernel/model/repository.go

@@ -2018,7 +2018,7 @@ func getCloudSpace() (stat *cloud.Stat, err error) {
 }
 
 func pushReloadPlugin(upsertPluginSet, removePluginNameSet *hashset.Set) {
-	var upsertPlugins, removePlugins []string
+	upsertPlugins, removePlugins := []string{}, []string{}
 	for _, n := range upsertPluginSet.Values() {
 		upsertPlugins = append(upsertPlugins, n.(string))
 	}