mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-82762 course: Prevent "undefined" being added to course index
This commit is contained in:
parent
2b337b49f9
commit
e85338bfee
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
|
@ -341,7 +341,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue