Skip to content

Commit

Permalink
fix(element): fix FormDialog/FormDrawer promise status error (#3049)
Browse files Browse the repository at this point in the history
* fix(element): fix component default export

* fix(element): fix promise status
  • Loading branch information
muuyao committed Apr 18, 2022
1 parent cee9722 commit d1700ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/element/src/array-base/index.ts
Expand Up @@ -442,3 +442,5 @@ export const ArrayBase = composeExport(ArrayBaseInner, {
useKey: useKey,
useRecord: useRecord,
})

export default ArrayBase
2 changes: 1 addition & 1 deletion packages/element/src/form-dialog/index.ts
Expand Up @@ -360,7 +360,7 @@ export function FormDialog(
formDialog.close()
}
})
.catch(reject)
.catch(() => {})
},
async () => {
await loading(dialogProps.loadingText, () =>
Expand Down
2 changes: 1 addition & 1 deletion packages/element/src/form-drawer/index.ts
Expand Up @@ -365,7 +365,7 @@ export function FormDrawer(
formDrawer.close()
}
})
.catch(reject)
.catch(() => {})
},
async () => {
await loading(drawerProps.loadingText, () =>
Expand Down

0 comments on commit d1700ce

Please sign in to comment.