Skip to content

Commit f2c5e3d

Browse files
committed
fix
1 parent 8feddbe commit f2c5e3d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/components/token/ResponseSettingsCard.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ const responseBody = ref('')
8484
const isFormInitialized = ref(false)
8585
8686
const statusSummary = computed(() => {
87-
const statusLabel = responseStatus.value?.trim().length ? responseStatus.value : '200'
87+
let statusLabel = '200';
88+
if (!responseStatus.value) {
89+
statusLabel = responseStatus.value?.trim().length ? responseStatus.value : '200'
90+
}
8891
return responseEnabled.value ? `Custom response enabled · ${statusLabel}` : 'Custom responses disabled'
8992
})
9093

0 commit comments

Comments
 (0)