Răsfoiți Sursa

HUE-262. When cleaning up partials in partial refresh; do not attempt to remove line containers that don't exist.

Aaron Newton 15 ani în urmă
părinte
comite
add5fa7952

+ 1 - 1
desktop/core/static/js/Source/JFrameRenderers/CCS.JFrame.PartialRefresh.js

@@ -345,10 +345,10 @@ script: CCS.JFrame.PartialRefresh.js
 			if (!partials[id]) {
 				//get its line; assume that we have to remove that, too
 				var line = getPartialLine(partial);
+				if (line) linesToDestroy[line.get('data', 'partial-line-id')] = line;
 				if (enableLog) dbug.log('destroying %s', id, line);
 				//destroy the partial
 				destroyPartial(id, jState, behavior);
-				linesToDestroy[line.get('data', 'partial-line-id')] = line;
 			}
 		});
 		for (id in linesToDestroy) {