Fixed hardcoded value in application comment poster
This commit is contained in:
@@ -104,6 +104,7 @@ export async function postChatMessage(message: any, post_id: number) {
|
||||
|
||||
const response = await fetch(`${addr}/application/${post_id}/comment`, {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(out),
|
||||
})
|
||||
|
||||
@@ -164,7 +164,7 @@ async function handleDeny(id) {
|
||||
</div>
|
||||
<ApplicationForm :read-only="readOnly" :data="appData" @submit="(e) => { postApp(e) }" class="mb-7 pb-15">
|
||||
</ApplicationForm>
|
||||
<div v-if="!newApp">
|
||||
<div v-if="!newApp" class="pb-15">
|
||||
<h3 class="scroll-m-20 text-2xl font-semibold tracking-tight mb-4">Discussion</h3>
|
||||
<ApplicationChat :messages="chatData" @post="postComment"></ApplicationChat>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user