Fix Sortable initialization error (#638)
# PR Checklist - [ ] Did you check if it works normally in all models? *ignore this when it dosen't uses models* - [ ] Did you check if it works normally in all of web, local and node hosted versions? if it dosen't, did you blocked it in those versions? - [ ] Did you added a type def? # Description  I propose this change to address the issue of the page freezing in the current trigger lua editing screen.
This commit is contained in:
@@ -18,6 +18,9 @@
|
|||||||
let sorted = 0
|
let sorted = 0
|
||||||
let opened = 0
|
let opened = 0
|
||||||
const createStb = () => {
|
const createStb = () => {
|
||||||
|
if (!ele) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
stb = Sortable.create(ele, {
|
stb = Sortable.create(ele, {
|
||||||
onEnd: async () => {
|
onEnd: async () => {
|
||||||
let idx:number[] = []
|
let idx:number[] = []
|
||||||
|
|||||||
Reference in New Issue
Block a user