Laravel Vapor - attempt to fix a frontend error Uncaught (in promise) null

This commit is contained in:
Dillon Ngo
2024-01-03 01:53:06 +08:00
parent cf5a22b40b
commit d79be5f24e
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -10,7 +10,6 @@ export default {
method: method,
parameters: this.parameters
}).then(response => {
console.log('debug Uncaught (in promise) null 2 : ' + JSON.stringify(response));
let statusCode = response.status,
success = response.ok;
-2
View File
@@ -10,7 +10,6 @@ export default {
method: method,
parameters: this.parameters
}).then(response => {
console.log('debug Uncaught (in promise) null 1 : ' + JSON.stringify(response));
let statusCode = response.status,
success = response.ok;
@@ -48,7 +47,6 @@ export default {
});
}
}).catch((error) => {
console.log('debug Uncaught (in promise) null 1 : ' + JSON.stringify(error));
console.log(error);
this.$store.dispatch('createNotification', {title: 'Unexpected Error', message: 'An unexpected error has occurred. Try again!', type: 'error'});
}).then(() => {