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

This commit is contained in:
Dillon Ngo
2024-01-03 01:20:16 +08:00
parent 5eb471e33f
commit cf5a22b40b
+1
View File
@@ -48,6 +48,7 @@ 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(() => {