Skip to content

Commit

Permalink
fix: field can't be array
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Dec 1, 2024
1 parent 6335e38 commit aeec4b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/services/NativeService/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/services/WikiStorageService/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
try {
Expand Down

0 comments on commit aeec4b8

Please sign in to comment.