Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 28e4bc4

Browse files
committed
fixed setPreview method
1 parent 3bd5a87 commit 28e4bc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.controllers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@
126126
$scope.control.editor.config.viewPath,
127127
$scope.control.editor.config.previewViewPath,
128128
!!editorState.current.publishDate)
129-
.success(function (htmlResult) {
129+
.then(function (response) {
130+
var htmlResult = response.data;
130131
if (htmlResult.trim().length > 0) {
131132
$scope.preview = htmlResult;
132133
}

0 commit comments

Comments
 (0)