From aeec4b866f29e713471fde5f9bab049f621c17c8 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Mon, 2 Dec 2024 00:49:34 +0800 Subject: [PATCH] fix: field can't be array --- src/services/NativeService/hooks.tsx | 3 --- src/services/WikiStorageService/index.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/services/NativeService/hooks.tsx b/src/services/NativeService/hooks.tsx index 3e748c2..1c8a8ec 100644 --- a/src/services/NativeService/hooks.tsx +++ b/src/services/NativeService/hooks.tsx @@ -105,9 +105,6 @@ export function useRegisterReceivingShareIntent() { const fileFields = { ...fields, type: file.mimeType, - width: file.width, - height: file.height, - duration: file.duration, text: fileContent, }; await storageOfDefaultWorkspace.saveTiddler(file.fileName || randomTitle, fileFields); diff --git a/src/services/WikiStorageService/index.ts b/src/services/WikiStorageService/index.ts index 85acc33..94b089a 100644 --- a/src/services/WikiStorageService/index.ts +++ b/src/services/WikiStorageService/index.ts @@ -44,7 +44,7 @@ export class WikiStorageService { /** * Save tiddler. Return the e-tag. - * `tags` field should be string, and fields can't contain `null`, otherwise TW won't boot. + * `tags` field should be string, and fields can't contain `null` or number or array, otherwise TW won't boot. */ async saveTiddler(title: string, fields: ITiddlerFieldsParam): Promise { try {