Skip to content

Commit 3e9e52a

Browse files
authored
Merge pull request #479 from kne-union/release
Release
2 parents ed5fda7 + bc7d970 commit 3e9e52a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kne-components/components-core",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"files": [
55
"build"
66
],

src/components/Layout/PageHeader/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {Space, Row, Col} from "antd";
22
import classnames from "classnames";
33
import importMessages from "../locale";
44
import Icon from "@components/Icon";
5+
import {isValidElement} from 'react';
56
import ButtonGroup from "@components/ButtonGroup";
67
import {IntlProvider} from "@components/Intl";
78
import style from "./style.module.scss";
@@ -45,7 +46,9 @@ export const PageHeaderInner = ({
4546
className={style["button-options"]}
4647
style={{"--max-width": buttonOptionsMaxWidth}}
4748
>
48-
<ButtonGroup {...buttonOptions} />
49+
{isValidElement(buttonOptions) && buttonOptions}
50+
{typeof buttonOptions === "object" && Array.isArray(buttonOptions?.list) &&
51+
<ButtonGroup {...buttonOptions} />}
4952
</Col>)}
5053
</Row>
5154
{tags && (<Space className={tagClassName} split={tagSplit} size={[16, 8]}>

0 commit comments

Comments
 (0)