Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Feb 29, 2024
1 parent cd7c2a3 commit ffd08a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog/Content/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Panel = React.forwardRef<ContentRef, PanelProps>((props, ref) => {


const closableObj = useMemo(() => {
if (typeof closable === 'object') {
if (typeof closable === 'object' && closable !== null) {
return closable;
}
if (closable) {
Expand Down

0 comments on commit ffd08a5

Please sign in to comment.