fix: not found redirect
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user