Skip to content

Commit fbb0c8e

Browse files
Add another type annotation
1 parent a518c0d commit fbb0c8e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/views/workflow-page/workflow-page-header/workflow-page-header.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import PageSection from '@/components/page-section/page-section';
1313
import { type PageQueryParamSetterValues } from '@/hooks/use-page-query-params/use-page-query-params.types';
1414
import useStyletronClasses from '@/hooks/use-styletron-classes';
1515
import type domainPageQueryParamsConfig from '@/views/domain-page/config/domain-page-query-params.config';
16+
import type domainPageTabsConfig from '@/views/domain-page/config/domain-page-tabs.config';
1617

1718
import WorkflowPageStatusTag from '../workflow-page-status-tag/workflow-page-status-tag';
1819

@@ -47,7 +48,12 @@ export default function WorkflowPageHeader({
4748
<StyledLink
4849
$as={Link}
4950
href={queryString.stringifyUrl({
50-
url: domainLink + '/workflows',
51+
url:
52+
domainLink +
53+
'/' +
54+
// ensuring that this tab exists in config
55+
('workflows' satisfies (typeof domainPageTabsConfig)[number]['key']),
56+
// ensuring that these query params exist in config
5157
query: {
5258
search: workflowId,
5359
} satisfies Partial<

0 commit comments

Comments
 (0)