Skip to content

Commit 3632267

Browse files
author
hikki
committed
7.1
1 parent 4ac3c31 commit 3632267

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

resources/assets/component.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,8 +1207,14 @@ window.ComponentLine = class {
12071207
limit: 1,
12081208
useSearch: false
12091209
}, column.options);
1210-
if (Array.isArray(value) === false) value = [parseInt(value)];
1211-
let dot = new ComponentDot(menu, column.select, value, modSettings.limit).mod({
1210+
if (Array.isArray(value) === false) {
1211+
if(value === '' || value === null) {
1212+
value = [];
1213+
}else {
1214+
value = [parseInt(value)];
1215+
}
1216+
}
1217+
let dot = new ComponentDot(menu, column.select).selected(value).limitNum(modSettings.limit).mod({
12121218
mode: true,
12131219
placeholder: modSettings.placeholder,
12141220
height: modSettings.height

0 commit comments

Comments
 (0)