From 8f6989d9020207ebb09a27f68c20211446381b9a Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 18 Oct 2021 01:01:28 -0400 Subject: [PATCH] Use v-if/v-else instead of ternery logic --- src/Job.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Job.vue b/src/Job.vue index b1d3e41..89fa654 100644 --- a/src/Job.vue +++ b/src/Job.vue @@ -28,11 +28,10 @@
{{ event.data.jid }}: {{ event.data.fun }} {{ event.data.fun_args }} => {{ event.data.retcode }} -
{{
-              typeof event.data.return === 'string'
-                ? event.data.return
-                : JSON.stringify(event.data.return, null, 2)
+            
{{
+              event.data.return
             }}
+
{{ JSON.stringify(event.data.return, null, 2) }}