aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.tsx
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-05-23 21:06:22 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-05-23 21:06:22 -0700
commit831de1c2853c427d2918e1cda6a296ae6d30c700 (patch)
tree15c6c8d052d9beb965d4265eb238f0eed1f88026 /src/client/views/nodes/WebBox.tsx
parentda705df20b9b2d44c6aa76050bb59a0bb669f0db (diff)
parent19ababdb6098ac36358c86e43ad63ab3066b4663 (diff)
pull from master
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r--src/client/views/nodes/WebBox.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index f80cea941..a91d4dfd9 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -106,7 +106,9 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps, WebDocum
} // else it's an HTMLfield
} else if (field?.url) {
const result = await WebRequest.get(Utils.CorsProxy(field.url.href));
- this.dataDoc.text = htmlToText.fromString(result.content);
+ if (result) {
+ this.dataDoc.text = htmlToText.fromString(result.content);
+ }
}
}