Skip to content

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

:rotating_light:

Vanessaf45d2bd37bc7
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index 2f26ff9aa2..7c90224e3a 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -74,6 +74,9 @@ export class Plugin {
public saveData(storageName: string, data: any) {
return new Promise((resolve) => {
+ if (!this.data) {
+ this.data = {};
+ }
const pathString = `/data/storage/petal/${this.name}/${storageName}`;
const file = new File([new Blob([data])], pathString.split("/").pop());
const formData = new FormData();