mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-03 15:16:56 +00:00
fix handleApply call
This commit is contained in:
parent
ff3bc7b822
commit
cbb6ed3c87
@ -170,7 +170,8 @@ const CustomiseHomeModal = ({
|
|||||||
}, [sidebarItems, selectedKey, handleSidebarClick]);
|
}, [sidebarItems, selectedKey, handleSidebarClick]);
|
||||||
|
|
||||||
const handleApply = () => {
|
const handleApply = () => {
|
||||||
if (onBackgroundColorUpdate) {
|
const colorChanged = selectedColor !== currentBackgroundColor;
|
||||||
|
if (onBackgroundColorUpdate && colorChanged) {
|
||||||
onBackgroundColorUpdate(selectedColor);
|
onBackgroundColorUpdate(selectedColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ const WidgetCard = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Typography.Paragraph className="widget-desc">
|
<Typography.Paragraph className="widget-desc">
|
||||||
{widget.description || 'No description available.'}
|
{widget.description ?? 'No description available.'}
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user