mirror of
https://github.com/daledesilva/obsidian_google-keep-import.git
synced 2026-07-22 07:50:23 +00:00
Added check labels exist
This commit is contained in:
parent
3a70bc3ce6
commit
61c72f7846
1 changed files with 3 additions and 1 deletions
|
|
@ -506,6 +506,7 @@ async function importJson(vault: Vault, folder: TFolder, file: File, settings: P
|
|||
*/
|
||||
async function appendKeepLabels(fileRef: TFile, content: KeepJson, settings: PluginSettings, vault: Vault) {
|
||||
if(!settings.addLabelTags) return;
|
||||
if(!content.labels) return;
|
||||
|
||||
let labels = "";
|
||||
for(let i=0; i<content.labels.length; i++) {
|
||||
|
|
@ -538,4 +539,5 @@ async function importBinaryFile(vault: Vault, folder: TFolder, file: File) : Pro
|
|||
}
|
||||
|
||||
return Promise.resolve(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue