Skip to content

Commit dc84893

Browse files
committed
do not need to pass the ware name to the request page
1 parent 2ef3e9f commit dc84893

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/compounds/Item/CardBody.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ const CardBody = ({ buttonLink, buttonProps, fromItemGroup, item,
3939
<LinkedButton
4040
addClass={`item-button-${orientation} item-link mt-auto`}
4141
buttonProps={buttonProps}
42-
path={{
43-
pathname: buttonLink,
44-
query: fromItemGroup ? { id } : { id, name }
45-
}}
42+
path={{ pathname: buttonLink, query: { id }}}
4643
/>
4744
</div>
4845
)}
@@ -61,7 +58,7 @@ CardBody.propTypes = {
6158
// buttonProps: props => props.withButtonLink
6259
// ? PropTypes.shape(Button.propTypes)
6360
// : PropTypes.shape({ ...Button.propTypes, label: PropTypes.string })
64-
fromItemGroup: PropTypes.string,
61+
fromItemGroup: PropTypes.bool,
6562
item: PropTypes.shape({
6663
description: PropTypes.string,
6764
id: PropTypes.number.isRequired,

0 commit comments

Comments
 (0)