Skip to content

Commit d73bcb2

Browse files
committed
fix ts
1 parent 938086d commit d73bcb2

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/extensions/jwArray/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ class Extension {
675675
menus: {
676676
list: {
677677
acceptReporters: false,
678+
variableType: 'list',
678679
items: "getLists",
679680
},
680681
stringifyFormat: {
@@ -774,16 +775,6 @@ class Extension {
774775
}
775776
};
776777
}
777-
778-
getLists() {
779-
const globalLists = Object.values(vm.runtime.getTargetForStage().variables)
780-
.filter((x) => x.type == "list");
781-
const localLists = Object.values(vm.editingTarget.variables)
782-
.filter((x) => x.type == "list");
783-
const uniqueLists = [...new Set([...globalLists, ...localLists])];
784-
if (uniqueLists.length === 0) return [{ text: "", value: "" }];
785-
return uniqueLists.map((v) => ({ text: v.name, value: new jwArray.Type(v.value) }));
786-
}
787778

788779
blank() {
789780
return new jwArray.Type([], true)

0 commit comments

Comments
 (0)