INNER CODE UNIT · JavaScript
apiUrl
ChatFAQ/ChatFAQ · admin/utils/index.js:65
let apiUrl = prop?.choices?.next // it better ahs a next...
if (apiUrl) {
apiUrl = apiUrl.split("?")[0];
const res = await itemsStore.retrieveItems(apiUrl, {
id: item[propName],
limit: 0,
offset: 0,
ordering: undefined
}, true);
if (res) {
itemSchema.properties[propName].choices.results.push({label: res.name, value: res.id})
return res.name
}
}
}
}
return item[propName];
}