Skip to content

Commit 6ffe768

Browse files
committed
fix: ensure text field is not null for post thread mutations in companies and speakers
1 parent 5890f83 commit 6ffe768

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/mutations/companies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export const usePostCompanyThreadMutation = defineMutation(() => {
209209
id: tempPostId,
210210
member: authStore.decoded?.id,
211211
posted: new Date().toISOString(),
212-
text: threadData.value?.text,
212+
text: threadData.value?.text ?? "",
213213
},
214214
};
215215

frontend/src/mutations/speakers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const usePostSpeakerThreadMutation = defineMutation(() => {
146146
id: tempPostId,
147147
member: authStore.decoded?.id,
148148
posted: new Date().toISOString(),
149-
text: threadData.value?.text,
149+
text: threadData.value?.text ?? "",
150150
},
151151
};
152152

0 commit comments

Comments
 (0)