Skip to content

Commit

Permalink
Fix checktype issues
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutjhunjhunwala committed Oct 24, 2024
1 parent 94772d0 commit e77dc96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export type IndexManagementLocatorParams = SerializableRecord &
}
| {
page: 'index_template';
indexTemplate?: string;
indexTemplate: string;
}
| {
page: 'component_template';
componentTemplate?: string;
componentTemplate: string;
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function CreateEditComponentTemplateLink({ isIntegration }: { isIntegrati
name,
]);

const templateUrl = isIntegration ? componentTemplatePath : indexTemplatePath;
const templateUrl = (isIntegration ? componentTemplatePath : indexTemplatePath) ?? null;

const onClickHandler = useCallback(async () => {
await application.navigateToApp(MANAGEMENT_APP_ID, {
Expand Down

0 comments on commit e77dc96

Please sign in to comment.