diff --git a/src/modules/04_registry/components/Record.vue b/src/modules/04_registry/components/Record.vue index 5de5d5494..a32e0f07f 100644 --- a/src/modules/04_registry/components/Record.vue +++ b/src/modules/04_registry/components/Record.vue @@ -309,7 +309,9 @@ const tittleHistory = ref( ); const filterHistory = ref(""); //search data table history const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล -const profileId = ref(route.params.id.toString()); +const profileId = ref( + route.params.id ? route.params.id.toString() : "" +); const checkValidate = ref(false); //validate data ผ่านหรือไม่ const rows = ref([]); const filter = ref(""); //search data table