mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 12:05:48 +02:00
Fix #4852
This commit is contained in:
@@ -337,7 +337,7 @@ export default Vue.extend({
|
|||||||
getScriptBlockList(type: string = null) {
|
getScriptBlockList(type: string = null) {
|
||||||
const list = [];
|
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) {
|
for (const block of blocks) {
|
||||||
const category = list.find(x => x.category === block.category);
|
const category = list.find(x => x.category === block.category);
|
||||||
|
|||||||
Reference in New Issue
Block a user