From 71f21e8f2a3acd38328b61a809c96b4a77c98e2c Mon Sep 17 00:00:00 2001 From: Attila Max Ruf Date: Fri, 25 Dec 2020 21:55:37 +0100 Subject: [PATCH] fix: include fallback icon --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index c39ee65..4911c0a 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,5 @@ import Vue, { h as v3h } from 'vue' +import { mdiAlert } from '@mdi/js' import './icons.css' const vueVersion = Vue === undefined ? 3 : 2; @@ -15,7 +16,7 @@ const renderWithIcons = mdi => function render(v2h, v2ctx) { const props = isV2 ? v2ctx.props : this const attrs = isV2 ? v2ctx.attrs : this.$attrs const h = isV2 ? v2h : v3h - const iconPath = mdi[`mdi${ucFirst(props.name)}`] || mdi.mdiAlert + const iconPath = mdi[`mdi${ucFirst(props.name)}`] || mdiAlert const spanAttrs = { role: props.role,