We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff183c commit 466baaeCopy full SHA for 466baae
frontend/src/views/Dashboard/Members/MemberView.vue
@@ -225,10 +225,8 @@ const contactId = computed(
225
226
const { data: contact, isLoading: contactLoading } = useQuery({
227
key: () => ["member-contact", contactId.value || ""],
228
- query: () => {
229
- if (!contactId.value) return Promise.resolve({ data: null });
230
- return instance.get(`/contacts/${contactId.value}`);
231
- },
+ enabled: () => !!contactId.value,
+ query: () => instance.get(`/contacts/${contactId.value}`),
232
});
233
234
const companiesFilters = computed(() => ({
0 commit comments