chore: fix ci problem
This commit is contained in:
parent
49d0da3a6d
commit
3e3dc4c22d
@ -26,9 +26,8 @@ function PageComponent() {
|
|||||||
|
|
||||||
const onSubmit = useEvent(async (values: SurveyEditFormValues) => {
|
const onSubmit = useEvent(async (values: SurveyEditFormValues) => {
|
||||||
const res = await createMutation.mutateAsync({
|
const res = await createMutation.mutateAsync({
|
||||||
|
...values,
|
||||||
workspaceId,
|
workspaceId,
|
||||||
name: values.name,
|
|
||||||
payload: values.payload,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
utils.survey.all.refetch();
|
utils.survey.all.refetch();
|
||||||
|
@ -17,8 +17,6 @@ describe('survey', () => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
createdAt: '',
|
|
||||||
updatedAt: '',
|
|
||||||
})
|
})
|
||||||
).matchSnapshot();
|
).matchSnapshot();
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,13 @@ import { AppRouterOutput } from '@/api/trpc';
|
|||||||
*/
|
*/
|
||||||
export function generateSurveyExampleCode(
|
export function generateSurveyExampleCode(
|
||||||
host: string,
|
host: string,
|
||||||
info?: AppRouterOutput['survey']['get']
|
info:
|
||||||
|
| Pick<
|
||||||
|
NonNullable<AppRouterOutput['survey']['get']>,
|
||||||
|
'id' | 'name' | 'workspaceId' | 'payload'
|
||||||
|
>
|
||||||
|
| null
|
||||||
|
| undefined
|
||||||
): string {
|
): string {
|
||||||
const fields = info?.payload.items ?? [];
|
const fields = info?.payload.items ?? [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user