🚨 Fix build errors

This commit is contained in:
Manuel Ruwe
2022-12-30 16:58:05 +01:00
parent 123d6d72f5
commit 42a16e0015
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export const AppTile = ({ className, app }: AppTileProps) => {
<UnstyledButton
style={{ pointerEvents: isEditMode ? 'none' : 'auto' }}
component={NextLink}
href={app.behaviour.externalUrl ?? app.url}
href={app.behaviour.externalUrl.length > 0 ? app.behaviour.externalUrl : app.url}
target={app.behaviour.isOpeningNewTab ? '_blank' : '_self'}
className={cx(classes.button, classes.link)}
>