Skip to content

Commit

Permalink
Fix more checktype issues
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutjhunjhunwala committed Oct 24, 2024
1 parent e77dc96 commit 22d4080
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ export function CreateEditComponentTemplateLink({ isIntegration }: { isIntegrati
name,
]);

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

const onClickHandler = useCallback(async () => {
await application.navigateToApp(MANAGEMENT_APP_ID, {
path: templateUrl,
const options = {
openInNewTab: true,
});
...(templateUrl && { path: templateUrl }),
};

await application.navigateToApp(MANAGEMENT_APP_ID, options);
}, [application, templateUrl]);

return (
Expand Down

0 comments on commit 22d4080

Please sign in to comment.