summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-05 15:17:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-05 15:17:29 +0900
commit73641fd78dad557a4c19c4fc48de3a57ba1947a2 (patch)
treed0caa2d71c918b46804df9b53ba7b541104e990e /src
parentFix #4862 (diff)
downloadsharkey-73641fd78dad557a4c19c4fc48de3a57ba1947a2.tar.gz
sharkey-73641fd78dad557a4c19c4fc48de3a57ba1947a2.tar.bz2
sharkey-73641fd78dad557a4c19c4fc48de3a57ba1947a2.zip
Fix #4852
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/page-editor/page-editor.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/page-editor/page-editor.vue b/src/client/app/common/views/components/page-editor/page-editor.vue
index baccda8a43..a3c21322af 100644
--- a/src/client/app/common/views/components/page-editor/page-editor.vue
+++ b/src/client/app/common/views/components/page-editor/page-editor.vue
@@ -337,7 +337,7 @@ export default Vue.extend({
getScriptBlockList(type: string = null) {
const list = [];
- const blocks = blockDefs.filter(block => type === null || block.out === null || block.out === type);
+ const blocks = blockDefs.filter(block => type === null || block.out === null || block.out === type || typeof block.out === 'number');
for (const block of blocks) {
const category = list.find(x => x.category === block.category);