🔀 Merge pull request #759 from patrickheeney/FIX/Improve-Failed-Load

🩹 Handle failed component load.
This commit is contained in:
Alicia Sykes 2022-06-24 17:12:36 +01:00 committed by GitHub
commit a3a26ce063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export default {
return null;
}
// eslint-disable-next-line prefer-template
return () => import('@/components/Widgets/' + type + '.vue');
return () => import('@/components/Widgets/' + type + '.vue').catch(() => import('@/components/Widgets/Blank.vue'));
},
},
methods: {