🚨 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 <UnstyledButton
style={{ pointerEvents: isEditMode ? 'none' : 'auto' }} style={{ pointerEvents: isEditMode ? 'none' : 'auto' }}
component={NextLink} 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'} target={app.behaviour.isOpeningNewTab ? '_blank' : '_self'}
className={cx(classes.button, classes.link)} className={cx(classes.button, classes.link)}
> >

View File

@@ -16,7 +16,7 @@ export type ConfigAppType = Omit<AppType, 'integration'> & {
}; };
interface AppBehaviourType { interface AppBehaviourType {
externalUrl?: string; externalUrl: string;
isOpeningNewTab: boolean; isOpeningNewTab: boolean;
} }