Manav Rathi 1 年之前
父節點
當前提交
c9f94f062b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/packages/shared/components/DialogBoxV2/index.tsx

+ 2 - 2
web/packages/shared/components/DialogBoxV2/index.tsx

@@ -96,7 +96,7 @@ export default function DialogBoxV2({
                                 size="large"
                                 size="large"
                                 color={attributes.proceed?.variant}
                                 color={attributes.proceed?.variant}
                                 onClick={async () => {
                                 onClick={async () => {
-                                    await attributes.proceed.action(setLoading);
+                                    await attributes.proceed?.action(setLoading);
 
 
                                     onClose();
                                     onClose();
                                 }}
                                 }}
@@ -110,7 +110,7 @@ export default function DialogBoxV2({
                                 size="large"
                                 size="large"
                                 color={attributes.close?.variant ?? "secondary"}
                                 color={attributes.close?.variant ?? "secondary"}
                                 onClick={() => {
                                 onClick={() => {
-                                    attributes.close.action &&
+                                    attributes.close?.action &&
                                         attributes.close?.action();
                                         attributes.close?.action();
                                     onClose();
                                     onClose();
                                 }}
                                 }}