Added a code comment to explain the complicated breadcrumb for the extrnal trigger page

This commit is contained in:
Matt Aitken
2023-07-11 15:56:18 +01:00
parent 5d3fe2a5ea
commit 44df509b62
@@ -64,6 +64,7 @@ export const loader = async ({ request, params }: LoaderArgs) => {
};
export const handle: Handle = {
//this one is complicated because we render outside the parent route (using triggers_ in the path)
breadcrumb: (match, matches) => {
const data = useTypedMatchData<typeof loader>(match);
if (!data) return null;
@@ -92,7 +93,7 @@ export const handle: Handle = {
},
};
export default function Integrations() {
export default function Page() {
const { trigger } = useTypedLoaderData<typeof loader>();
const organization = useOrganization();
const project = useProject();