Krinkle has uploaded a new change for review. https://gerrit.wikimedia.org/r/215262
Change subject: ve.dm.MWTemplateSpecModel: Account for data.maps to be undefined ...................................................................... ve.dm.MWTemplateSpecModel: Account for data.maps to be undefined This new property is optional and should not be assumed to be present. Follows-up 2ac7959849. Change-Id: Id2cb93696d12a20ee14f9d59705877dc174e6564 --- M modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/62/215262/1 diff --git a/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js b/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js index 91c8edc..d68fbba 100644 --- a/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js +++ b/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js @@ -71,7 +71,9 @@ } } this.sets = data.sets; - this.maps = data.maps; + if ( data.maps ) { + this.maps = data.maps; + } }; /** -- To view, visit https://gerrit.wikimedia.org/r/215262 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id2cb93696d12a20ee14f9d59705877dc174e6564 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Krinkle <krinklem...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits