File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { Reactive } from "vue" ;
2
2
3
3
import { v4 } from "uuid" ;
4
- import { computed , isReactive , nextTick , reactive } from "vue" ;
4
+ import { computed , isReactive , reactive } from "vue" ;
5
5
6
6
const configurable = true ;
7
7
export default (
@@ -160,7 +160,7 @@ export default (
160
160
}
161
161
return undefined ;
162
162
} ;
163
- const remove = async ( pId : string | undefined ) => {
163
+ const remove = ( pId : string | undefined ) => {
164
164
const the = leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ;
165
165
if ( the ) {
166
166
const next = the [ keyNext ] as Record < string , unknown > | undefined ;
@@ -182,10 +182,7 @@ export default (
182
182
the [ keyIndex ] as number ,
183
183
1 ,
184
184
) ;
185
- if ( ! id ) {
186
- await nextTick ( ) ;
187
- [ { id } ] = leaves . value as [ { id : string } ] ;
188
- }
185
+ if ( ! id ) [ { id } ] = leaves . value as [ { id : string } ] ;
189
186
return id ;
190
187
}
191
188
}
You can’t perform that action at this time.
0 commit comments