Skip to content

Commit

Permalink
fix(Dashboard): Title to rely only on loading prop
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Oct 15, 2024
1 parent a0a2131 commit abfad96
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ export const DynamicEditableTitle = memo(
});

useEffect(() => {
if (title) {
setCurrentTitle(title);
}
setCurrentTitle(title ?? '');
}, [title]);

useEffect(() => {
Expand Down Expand Up @@ -178,7 +176,7 @@ export const DynamicEditableTitle = memo(
[canEdit],
);

if (title === undefined || loading) {
if (loading) {
return (
<Skeleton.Button
active
Expand Down

0 comments on commit abfad96

Please sign in to comment.