feat: Create empty trigger step when the flow is created

This commit is contained in:
Faruk AYDIN
2022-01-05 23:24:31 +03:00
committed by Ömer Faruk Aydın
parent 247b25cfc4
commit c07b377de1
6 changed files with 31 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ type EditorLayoutProps = {
export default function EditorLayout(props: EditorLayoutProps) {
const { flowId } = useParams();
const formatMessage = useFormatMessage();
const { data } = useQuery(GET_FLOW, { variables: { id: flowId }});
const { data } = useQuery(GET_FLOW, { variables: { id: Number(flowId) }});
const flow: Flow = data?.getFlow;
return (
@@ -58,4 +58,4 @@ export default function EditorLayout(props: EditorLayoutProps) {
</Stack>
</>
)
}
}