mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 22:04:59 +00:00
FIX [review] processing review, but stuck at transformation of json string to array
This commit is contained in:
@@ -23,10 +23,12 @@ function loadDynamicPicker(element) {
|
||||
(input.value === '[]' || input.value === '') ?
|
||||
null : [ JSON.parse(input.value) ]
|
||||
)
|
||||
suggested = null !== JSON.parse(el.dataset.suggested) ? JSON.parse(el.dataset.suggested) : null
|
||||
;
|
||||
suggested = JSON.parse('[' + el.dataset.suggested + ']');
|
||||
// suggested = suggested[0];
|
||||
|
||||
console.log('suggested', suggested)
|
||||
console.log(typeof suggested)
|
||||
// console.log(el.dataset.suggested)
|
||||
console.log('suggested', typeof suggested[0])
|
||||
|
||||
if (!isMultiple) {
|
||||
if (input.value === '[]'){
|
||||
|
Reference in New Issue
Block a user