client creation bug fixes

This commit is contained in:
Casey 2025-11-25 08:03:46 -06:00
parent cb33d0c3b3
commit 2ea20a86e3
7 changed files with 52 additions and 19 deletions

View file

@ -148,7 +148,8 @@ const localFormData = computed({
set: (value) => emit("update:formData", value),
});
const isNewContact = ref(false);
// Default to true for new-client flows; if editing keep it off
const isNewContact = ref(!props.isEditMode);
const selectedContact = ref(null);
const sameAsClientName = ref(false);

View file

@ -262,6 +262,7 @@ const formData = ref({
onMounted(() => {
if (props.isNew) {
resetForm();
isNewClientMode.value = true; // Set to true for new client mode
console.log("Mounted in new client mode - initialized empty form");
} else if (props.clientData && Object.keys(props.clientData).length > 0) {
populateFormFromClientData();