Merge branch 'mdl-82762_404_wip' of https://github.com/james-cnz/moodle into MOODLE_404_STABLE

This commit is contained in:
Huong Nguyen
2024-11-26 12:10:51 +07:00
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -338,7 +338,7 @@ export default class Component extends BaseComponent {
const item = allitems[itemid];
// Get the current element at that position.
const currentitem = container.children[index];
if (currentitem === undefined) {
if (currentitem === undefined && item != undefined) {
container.append(item);
return;
}