From 21ad703d4cab26b643164c46721df8479517fdb2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sun, 7 Jun 2020 13:49:09 +0000 Subject: [PATCH] --- ayanova/src/components/wiki-control.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index eb781f36..5ef93720 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -347,7 +347,7 @@ export default { }, data() { return { - localVal: this.value,todo: handle null localVal without blowing up + localVal: this.value, currentView: 0, reveal: false, selection: { @@ -383,19 +383,19 @@ export default { }; }, props: { - value: String, + value: { type: String, default: "" }, ayaType: Number, ayaId: Number, readonly: Boolean }, watch: { value(value) { - this.localVal = value; + this.localVal = value ?? ""; } }, methods: { compiledOutput() { - if (this.localVal.length == 0) { + if (!this.localVal) { return ""; } //replace attachment urls with tokenized local urls