fix: compiler type warning (#744)

This commit is contained in:
th33xitus authored and GitHub committed 2022-04-05 23:02:01 +02:00
1 parent 88e1e84fb3
commit ec9126b903
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ import kebabCase from 'lodash.kebabcase'
export default class PageDashboard extends Mixins(DashboardMixin) {
get allComponents() {
const output: string[] = []
const components = Object.keys(this.$options.components)
const components = Object.keys(this.$options.components ?? {})
components?.forEach((component) => {
if (component.endsWith('Panel')) output.push(kebabCase(component))