diff --git a/src/platform/web/ui/general/ListView.js b/src/platform/web/ui/general/ListView.js index 3aed06eb..398774ee 100644 --- a/src/platform/web/ui/general/ListView.js +++ b/src/platform/web/ui/general/ListView.js @@ -122,7 +122,13 @@ export class ListView { this.onBeforeListChanged(); const child = this._childCreator(value); this._childInstances.splice(idx, 0, child); - insertAt(this._root, idx, child.mount(this._mountArgs)); + let node; + try { + node = child.mount(this._mountArgs); + } catch (err) { + node = errorToDOM(err); + } + insertAt(this._root, idx, node); this.onListChanged(); }