Skip to content

Commit 7fecf1f

Browse files
authored
Merge pull request #31 from mutjan/master
Simple fix for empty property and empty inline dataview problem
2 parents c6d9a4d + d149196 commit 7fecf1f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "graph-link-types",
33
"name": "Graph Link Types",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"minAppVersion": "1.5.0",
66
"description": "Link types for graph view.",
77
"author": "natefrisch01",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graph-link-types",
3-
"version": "0.1.2",
3+
"version": "0.3.2",
44
"description": "Link types for Obsidian graph view.",
55
"main": "main.js",
66
"scripts": {

src/linkManager.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ export class LinkManager {
425425
if (!sourcePage) return null;
426426

427427
for (const [key, value] of Object.entries(sourcePage)) {
428+
// Skip empty values
429+
if (value === null || value === undefined || value === '') {
430+
continue;
431+
}
428432
const valueType = this.determineDataviewLinkType(value);
429433

430434
switch (valueType) {
@@ -497,4 +501,4 @@ export class LinkManager {
497501
return { px, py };
498502
}
499503

500-
}
504+
}

0 commit comments

Comments
 (0)