mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Added dynamic properties to settings in AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150 - Setting group values were taking their input parameters statically which meant that it didn't auto-extend as new props have been added
This commit is contained in:
parent
0b4fc8d591
commit
2978b4752b
@ -17,8 +17,8 @@ const SettingGroupValues: React.FC<ISettingGroupValues> = ({columns, values, chi
|
||||
|
||||
return (
|
||||
<div className={styles}>
|
||||
{values && values.map(value => (
|
||||
<SettingValue key={value.key} heading={value.heading} value={value.value} />
|
||||
{values && values.map(({key, ...props}) => (
|
||||
<SettingValue key={key} {...props} />
|
||||
))}
|
||||
{children}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user