Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga committed Aug 18, 2024
1 parent 47b8abd commit d31e077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function DescriptionDialog(props: DescriptionDialogProps): JSX.Element {
const HeaderTitle = () => <div />;

if (isTouched || !previewMode) {
return {};
return { HeaderTitle };
}

const Header = (props) => (
Expand Down
2 changes: 2 additions & 0 deletions designer/client/src/containers/ScenarioDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const ScenarioDescription = () => {
const { t } = useTranslation();
const title = t("graph.description.toggle", "toggle description view");

if (!description) return null;

return (
<IconButton
ref={ref}
Expand Down

0 comments on commit d31e077

Please sign in to comment.