fix: not found redirect
This commit is contained in:
parent
a2d5d99c1f
commit
3668f83693
@ -20,7 +20,7 @@
|
||||
if (!application || Object.entries(application).length === 0) {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: '/applications'
|
||||
redirect: '/'
|
||||
};
|
||||
}
|
||||
const configurationPhase = checkConfiguration(application);
|
||||
|
@ -19,7 +19,7 @@
|
||||
if (id !== 'new' && (!database || Object.entries(database).length === 0)) {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: '/databases'
|
||||
redirect: '/'
|
||||
};
|
||||
}
|
||||
const configurationPhase = checkConfiguration(database);
|
||||
|
@ -16,7 +16,7 @@
|
||||
if (id !== 'new' && (!destination || Object.entries(destination).length === 0)) {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: '/destinations'
|
||||
redirect: '/'
|
||||
};
|
||||
}
|
||||
const configurationPhase = checkConfiguration(destination);
|
||||
|
@ -19,7 +19,7 @@
|
||||
if (!service || Object.entries(service).length === 0) {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: '/databases'
|
||||
redirect: '/'
|
||||
};
|
||||
}
|
||||
const configurationPhase = checkConfiguration(service);
|
||||
|
@ -9,7 +9,7 @@
|
||||
if (id !== 'new' && (!source || Object.entries(source).length === 0)) {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: '/sources'
|
||||
redirect: '/'
|
||||
};
|
||||
}
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user