mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #759 from patrickheeney/FIX/Improve-Failed-Load
🩹 Handle failed component load.
This commit is contained in:
commit
a3a26ce063
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue