Skip to content

Commit

Permalink
fix: when sync to server, try load file from fs
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Sep 11, 2023
1 parent fd83a59 commit 01d0661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/BackgroundSyncService/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class BackgroundSyncService {

const fields = {
...fieldsWithoutText,
text: skinnyTiddlerWithText.text,
text: skinnyTiddlerWithText.text ?? (await fs.readAsStringAsync(getWikiTiddlerPathByTitle(wiki, title))),
} satisfies ITiddlerFieldsParam;

result.fields = fields;
Expand Down

0 comments on commit 01d0661

Please sign in to comment.