fix error in modal

This commit is contained in:
Huskydog9988 2026-01-09 14:45:52 -05:00
parent 43c55189c6
commit 5461479e9e

View file

@ -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);
};