Skip to content

Commit d6df07f

Browse files
committed
Bug fix
1 parent bce7ead commit d6df07f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/admin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ jQuery(document).ready(function($) {
196196
if(options.hasOwnProperty('sharedDataElementId'))
197197
select2Data = select2Data[options.sharedDataElementId];
198198
if(typeof select2Data === 'object' && (
199-
(Array.isArray(select2Data) && select2Data.length > 0))
200-
|| (!Array.isArray(select2Data) && Object.keys(select2Data).length > 0)
199+
(Array.isArray(select2Data) && select2Data.length > 0)
200+
|| (!Array.isArray(select2Data) && Object.keys(select2Data).length > 0)
201+
)
201202
)
202203
{
203204
var optionInfo = select2Data[id !== null ? id : 0];

0 commit comments

Comments
 (0)