Skip to content

Commit c8797c0

Browse files
committed
fix: fix create template form stories
1 parent 9ead7e4 commit c8797c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/src/pages/CreateTemplatePage/CreateTemplateForm.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
MockTemplateVersionVariable4,
1010
MockTemplateVersionVariable5,
1111
} from "testHelpers/entities";
12+
import { withDashboardProvider } from "testHelpers/storybook";
1213
import { CreateTemplateForm } from "./CreateTemplateForm";
1314

1415
const meta: Meta<typeof CreateTemplateForm> = {
@@ -18,6 +19,7 @@ const meta: Meta<typeof CreateTemplateForm> = {
1819
isSubmitting: false,
1920
onCancel: action("onCancel"),
2021
},
22+
decorators: [withDashboardProvider],
2123
};
2224

2325
export default meta;

site/src/pages/CreateTemplatePage/CreateTemplateForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export const CreateTemplateForm: FC<CreateTemplateFormProps> = (props) => {
196196
variablesSectionRef,
197197
} = props;
198198
const multiOrgExperimentEnabled = experiments.includes("multi-organization");
199-
// TODO: if there is only 1 organization, set the dropdown to the default organizationId or hide it
200199

201200
const form = useFormik<CreateTemplateData>({
202201
initialValues: getInitialValues({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy