Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Mar 6, 2021
1 parent bc599ba commit 42f9a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaterialSkin/HTML/material/html/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,9 +1125,9 @@ function splitMultiples(item) {
let ids = undefined!=item[idsKey] ? (""+item[idsKey]).split(",") : undefined;

if (undefined!=ids) {
let strings = undefined!=item[ARTIST_TYPES[i]] ? item[ARTIST_TYPES[i]].split(MULTI_SPLIT_REGEX) : undefined;
item[idsKey] = ids;

let strings = undefined!=item[ARTIST_TYPES[i]] ? item[ARTIST_TYPES[i]].split(MULTI_SPLIT_REGEX) : undefined;
if (undefined!=strings && ids.length>0 && ids.length==strings.length) {
item[ARTIST_TYPES[i]+"_id"]=ids[0];
item[ARTIST_TYPES[i]] = strings[0];
Expand Down

0 comments on commit 42f9a39

Please sign in to comment.