diff --git a/dashboard/src/components/AppInstallDialog.vue b/dashboard/src/components/AppInstallDialog.vue
index 968a0efa9..4686ffd75 100644
--- a/dashboard/src/components/AppInstallDialog.vue
+++ b/dashboard/src/components/AppInstallDialog.vue
@@ -101,11 +101,11 @@ async function submit() {
}
busy.value = false;
- if (error.status === 'Conflict' && error.message.indexOf('port') !== -1) {
- const match = error.message.match(/.*port.(.*)/);
+ if (error.status === 409 && error.body.message.indexOf('port') !== -1) {
+ const match = error.body.message.match(/.*port.(.*)/);
formError.value.port = match ? parseInt(match[1]) : null;
- } else if (error.status === 'Conflict' && error.message.indexOf('primary location') !== -1) {
- formError.value.location = true;
+ } else if (error.status === 409 && error.body.message.indexOf('primary location') !== -1) {
+ formError.value.location = error.body.message;
} else if (error.status === 412) {
formError.value.generic = error.body.message;
} else {
@@ -195,6 +195,7 @@ defineExpose({