aboutsummaryrefslogtreecommitdiff
path: root/src/components/PrintPreviewHeader.vue
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-13 02:58:03 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-13 02:58:03 +0530
commit3d6d0a116b2c4629ebbce775eeaf86950c498393 (patch)
tree9e84fced50c542577fccfbe11ad958462b0ee6e0 /src/components/PrintPreviewHeader.vue
parent58ecb36f6a98114604952d9dbe78cb99fb159351 (diff)
setting ref as new User() to not cause errors while rendering before data is received
Diffstat (limited to 'src/components/PrintPreviewHeader.vue')
-rw-r--r--src/components/PrintPreviewHeader.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PrintPreviewHeader.vue b/src/components/PrintPreviewHeader.vue
index 62da945..f1af518 100644
--- a/src/components/PrintPreviewHeader.vue
+++ b/src/components/PrintPreviewHeader.vue
@@ -5,7 +5,7 @@
const props = defineProps(["invoice"])
- const user = ref()
+ const user = ref(new User())
// temporarily using this
// TODO: don't call api from PrintPreview