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