Directory

⚓ T377717 Error thrown when deleting gallery
Page MenuHomePhabricator

Error thrown when deleting gallery
Open, Needs TriagePublic

Description

In VE, select and delete any gallery, e.g. https://en.wikipedia.org/w/index.php?title=Claude_Monet&veaction=edit&section=5

Observe an exception is thrown here:

ve.ce.MWGalleryNode.prototype.onUpdate = function () {
	const mwAttrs = this.model.getAttribute( 'mw' ).attrs;

TypeError: Cannot read properties of null (reading 'getAttribute')

Event Timeline

Change #1081970 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] MWGalleryNode: Check node still exists when updating

https://gerrit.wikimedia.org/r/1081970

Change #1081970 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] MWGalleryNode: Check node still exists when updating

https://gerrit.wikimedia.org/r/1081970