Frontend: Fix makeArray function to work for non-strings

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-25 14:12:46 +00:00
parent 6e7248dafb
commit c6b65c8baf
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ async function storageAvailable(type) { // Currently not used
/* Array Converter
Converts a string to a single item array */
async function makeArray(data) {
if (typeof data == "string") {
if (!Array.isArray(data)) {
var array = [];
array.push(data);
return array;