Skip to content

Commit 8c77f76

Browse files
committed
fix call geteditorsetting
1 parent 6eecdec commit 8c77f76

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -839,14 +839,16 @@ function ParagraphCtrl ($scope, $rootScope, $route, $window, $routeParams, $loca
839839

840840
let getEditorSetting = function (paragraph, interpreterName) {
841841
let deferred = $q.defer()
842-
websocketMsgSrv.getEditorSetting(paragraph.id, interpreterName)
843-
$timeout(
844-
$scope.$on('editorSetting', function (event, data) {
845-
if (paragraph.id === data.paragraphId) {
846-
deferred.resolve(data)
847-
}
848-
}
849-
), 1000)
842+
if (!$scope.revisionView) {
843+
websocketMsgSrv.getEditorSetting(paragraph.id, interpreterName)
844+
$timeout(
845+
$scope.$on('editorSetting', function (event, data) {
846+
if (paragraph.id === data.paragraphId) {
847+
deferred.resolve(data)
848+
}
849+
}
850+
), 1000)
851+
}
850852
return deferred.promise
851853
}
852854

0 commit comments

Comments
 (0)