From 3d6d0a116b2c4629ebbce775eeaf86950c498393 Mon Sep 17 00:00:00 2001
From: Vidhu Kant Sharma <vidhukant@vidhukant.com>
Date: Sat, 13 Jul 2024 02:58:03 +0530
Subject: setting ref as new User() to not cause errors while rendering before
 data is received

---
 src/components/PrintPreviewFooter.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/PrintPreviewFooter.vue')

diff --git a/src/components/PrintPreviewFooter.vue b/src/components/PrintPreviewFooter.vue
index 3d1dd4c..670b82d 100644
--- a/src/components/PrintPreviewFooter.vue
+++ b/src/components/PrintPreviewFooter.vue
@@ -7,7 +7,7 @@
  import  User from "./../classes/user.js"
  import axios from "axios"
 
-  const user = ref()
+  const user = ref(new User())
 
   // temporarily using this
   // TODO: don't call api from PrintPreview
-- 
cgit v1.2.3

