MOBILE-3320 feedback: Fix some offline answers not loaded
parent
88b0d3aa0a
commit
da050a66c8
|
@ -172,11 +172,12 @@ export class AddonModFeedbackProvider {
|
|||
return array.concat(responses);
|
||||
}, <OfflineResponsesArray> []).map((valueEntry) => {
|
||||
const parts = valueEntry.id.split('_');
|
||||
const item = (parts[1] || '').replace(/\[.*\]/, ''); // Remove [0] and similar.
|
||||
|
||||
return {
|
||||
...valueEntry,
|
||||
typ: parts[0],
|
||||
item: Number(parts[1]),
|
||||
item: Number(item),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue