From 9cb9f4639e81e0e293174581e0b6fb51230bb5f6 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Fri, 1 Mar 2019 09:59:08 +0000 Subject: [PATCH] Reset copied reference earlier in Wikidata schema --- .../wikidata/module/scripts/dialogs/schema-alignment-dialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js b/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js index 4ecceae9f..6e45d77bd 100644 --- a/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js +++ b/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js @@ -232,6 +232,7 @@ $(window).bind('beforeunload', beforeUnload); SchemaAlignmentDialog._reset = function(schema) { this._originalSchema = schema || { itemDocuments: [] }; this._schema = cloneDeep(this._originalSchema); // this is what can be munched on + this._copiedReference = null; $('#schema-alignment-statements-container').empty(); @@ -244,8 +245,6 @@ SchemaAlignmentDialog._reset = function(schema) { if (!this._schema.itemDocuments.length) { // this._addItem(); } - - this._copiedReference = null; }; SchemaAlignmentDialog._save = function(onDone) {