Skip to content

Commit 67ee5ab

Browse files
authored
restore size property id in geostory toolbar (#7664) (#7674)
1 parent e69ac23 commit 67ee5ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/client/components/geostory/contents/ToolbarButtons.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const getToolbarSizeProps = (size, sizeType) => {
5555
* @prop {function} filterOptions filter dropdown options by value (eg `({ value }) => value !== 'full'` to exclude `full` option)
5656
* @prop {function} pullRight pull dropdown right
5757
*/
58-
export const SizeButtonToolbar = ({editMap: disabled = false, align, sectionType, size, update = () => {}, filterOptions, pullRight, id = 'size', sizeType}) => {
58+
export const SizeButtonToolbar = ({editMap: disabled = false, align, sectionType, size, update = () => {}, filterOptions, pullRight, sizeType}) => {
5959
const {pre, _size, glyph, sizeProp} = getToolbarSizeProps(size, sizeType);
6060
return (<ToolbarDropdownButton
6161
value={_size}
@@ -81,7 +81,7 @@ export const SizeButtonToolbar = ({editMap: disabled = false, align, sectionType
8181
glyph: 'size-extra-large',
8282
label: <Message msgId="geostory.contentToolbar.fullSizeLabel"/>
8383
}].filter((option) => !filterOptions || filterOptions(option))}
84-
onSelect={(selected) => update(id, sizeProp(selected))}
84+
onSelect={(selected) => update('size', sizeProp(selected))}
8585
{...sizeType && {showSelectionInTitle: false}}
8686
/>);
8787
};

0 commit comments

Comments
 (0)