Skip to content

Commit

Permalink
fix(utils): do not use process?.env?.ANTD_VERSION
Browse files Browse the repository at this point in the history
close #6164
  • Loading branch information
chenshuai2144 committed Nov 7, 2022
1 parent 2dc6ce4 commit a295b3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { compareVersions } from './index';

const openVisibleCompatible = (open: boolean | undefined, onOpenChange?: any) => {
const props =
compareVersions(process.env.ANTD_VERSION || version, '4.23.0') > -1
compareVersions(process?.env?.ANTD_VERSION || version, '4.23.0') > -1
? {
open: open,
onOpenChange: onOpenChange,
Expand Down

0 comments on commit a295b3d

Please sign in to comment.