Skip to content

Commit 21a18df

Browse files
committed
fix auto-preview
1 parent ea8b939 commit 21a18df

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

www/api/data/components/components-generic/commands/initEditors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ function(el) {
66
}
77
simplyApp.commands.codeMirrorInit();
88
simplyApp.commands.autoRunTests();
9+
simplyApp.commands.autoRunPreviews();
910
}

www/api/data/pages/component/routes/component.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,5 @@ function(params) {
4242
editor.pageData.parts = parts;
4343
editor.pageData.count = count;
4444
editor.pageData.page = "Edit component";
45-
})
46-
.then(function() {
47-
setTimeout(function() { // FIXME: Wait for the CSS to be available;
48-
simplyApp.commands.autoRunPreviews();
49-
}, 1000);
5045
});
5146
}

www/api/data/pages/page/routes/page.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,5 @@ function(params) {
4242
editor.pageData.parts = parts;
4343
editor.pageData.count = count;
4444
editor.pageData.page = "Edit page";
45-
})
46-
.then(function() {
47-
setTimeout(function() { // FIXME: Wait for the CSS to be available;
48-
simplyApp.commands.autoRunPreviews();
49-
}, 1000);
5045
});
5146
}

0 commit comments

Comments
 (0)