소스 검색

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

Aaron Newton 15 년 전
부모
커밋
add5fa7952
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/core/static/js/Source/JFrameRenderers/CCS.JFrame.PartialRefresh.js

+ 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) {