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 {