mirror of
https://github.com/Drop-OSS/drop-base
synced 2026-08-27 16:26:03 -04:00
fix error in modal
This commit is contained in:
parent
43c55189c6
commit
5461479e9e
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ const stack = useModalStack();
|
|||
async function handleCallback(modalIdx: number, event: string, args: any[]) {
|
||||
const modal = stack.value[modalIdx];
|
||||
console.log(modal);
|
||||
if (!modal) {
|
||||
console.error("modal is undefined");
|
||||
return;
|
||||
}
|
||||
const close = () => {
|
||||
stack.value.splice(modalIdx, 1);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue