Skip to content

Commit

Permalink
Update linkManager.ts, skip when link value is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mutjan committed Apr 2, 2024
1 parent c6d9a4d commit 202e4b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/linkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ export class LinkManager {
if (!sourcePage) return null;

for (const [key, value] of Object.entries(sourcePage)) {
// Skip empty values
if (value === null || value === undefined || value === '') {
continue;
}
const valueType = this.determineDataviewLinkType(value);

switch (valueType) {
Expand Down Expand Up @@ -497,4 +501,4 @@ export class LinkManager {
return { px, py };
}

}
}

0 comments on commit 202e4b6

Please sign in to comment.