fix: not found redirect

This commit is contained in:
Andras Bacsai 2022-09-22 09:04:32 +02:00
parent a2d5d99c1f
commit 3668f83693
5 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@
if (!application || Object.entries(application).length === 0) { if (!application || Object.entries(application).length === 0) {
return { return {
status: 302, status: 302,
redirect: '/applications' redirect: '/'
}; };
} }
const configurationPhase = checkConfiguration(application); const configurationPhase = checkConfiguration(application);

View File

@ -19,7 +19,7 @@
if (id !== 'new' && (!database || Object.entries(database).length === 0)) { if (id !== 'new' && (!database || Object.entries(database).length === 0)) {
return { return {
status: 302, status: 302,
redirect: '/databases' redirect: '/'
}; };
} }
const configurationPhase = checkConfiguration(database); const configurationPhase = checkConfiguration(database);

View File

@ -16,7 +16,7 @@
if (id !== 'new' && (!destination || Object.entries(destination).length === 0)) { if (id !== 'new' && (!destination || Object.entries(destination).length === 0)) {
return { return {
status: 302, status: 302,
redirect: '/destinations' redirect: '/'
}; };
} }
const configurationPhase = checkConfiguration(destination); const configurationPhase = checkConfiguration(destination);

View File

@ -19,7 +19,7 @@
if (!service || Object.entries(service).length === 0) { if (!service || Object.entries(service).length === 0) {
return { return {
status: 302, status: 302,
redirect: '/databases' redirect: '/'
}; };
} }
const configurationPhase = checkConfiguration(service); const configurationPhase = checkConfiguration(service);

View File

@ -9,7 +9,7 @@
if (id !== 'new' && (!source || Object.entries(source).length === 0)) { if (id !== 'new' && (!source || Object.entries(source).length === 0)) {
return { return {
status: 302, status: 302,
redirect: '/sources' redirect: '/'
}; };
} }
return { return {