mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 Fixed custom setting image upload not working for multiple images (#18728)
refs https://github.com/TryGhost/Ghost/issues/18718 --- ### <samp>🤖 Generated by Copilot at 6fc7040</samp> Refactored the `id` prop of the `ImageUpload` component in `ThemeSettings.tsx` to avoid duplication and follow naming convention. This is part of improving the theme settings UI and functionality.
This commit is contained in:
parent
c543193d86
commit
29d3089dce
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ const ThemeSetting: React.FC<{
|
|||
<Heading useLabelTag>{humanizeSettingKey(setting.key)}</Heading>
|
||||
<ImageUpload
|
||||
height={setting.value ? '100px' : '32px'}
|
||||
id='cover-image'
|
||||
id={`custom-${setting.key}`}
|
||||
imageURL={setting.value || ''}
|
||||
onDelete={() => setSetting(null)}
|
||||
onUpload={file => handleImageUpload(file)}
|
||||
|
|
Loading…
Add table
Reference in a new issue