Skip to content

Commit

Permalink
media/playlist fields accept single value in setter to avoid some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jul 2, 2024
1 parent fd0c33a commit 60eeb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/fields/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class OBFieldMedia extends OBField {

set value(value) {
if (!Array.isArray(value)) {
return false;
value = [value];
}

value = value.map((x) => parseInt(x));
Expand Down
2 changes: 1 addition & 1 deletion ui/fields/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class OBFieldPlaylist extends OBField {

set value(value) {
if (!Array.isArray(value)) {
return false;
value = [value];
}

value = value.map((x) => parseInt(x));
Expand Down

0 comments on commit 60eeb04

Please sign in to comment.