Skip to content

Commit 881a7b0

Browse files
committed
fix: empty array if icon set not found
1 parent 7851517 commit 881a7b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/component/QIconPicker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,15 @@ export default Vue.extend({
157157

158158
methods: {
159159
loadIconSet (set) {
160+
this.iconsList = []
160161
if (set) {
161162
try {
162163
let icons = require(`./utils/${set}.js`).default
163164
this.iconsList = icons
164-
return
165165
} catch (e) {
166166
console.error(`QIconPicker: no icon set found called: ${set}`)
167167
}
168168
}
169-
this.iconsList = []
170169
},
171170

172171
fixPagination (p) {

0 commit comments

Comments
 (0)