setNewWorkflowDescription(event.target.value)}
+ InputProps={{
+ style: {
+ color: "white",
+ backgroundColor: theme.palette.inputColor,
+ borderRadius: 8,
+ },
+ }}
+ color="primary"
+ label="Description"
+ defaultValue={newWorkflowDescription}
+ multiline
+ rows={3}
+ margin="dense"
+ fullWidth
+ variant="outlined"
+ style={{ marginTop: 16 }}
+ />
+
+ {
+ // Directly set the new array instead of mutating
+ setNewWorkflowTags(chips);
+ }}
+ onBlur={(event) => {
+ if (event.target.value.length === 0) {
+ return
+ }
+
+ if (newWorkflowTags.includes(event.target.value)) {
+ return
+ }
+
+ // Create new array instead of pushing
+ setNewWorkflowTags([...newWorkflowTags, event.target.value]);
+ }}
+ onAdd={(chip) => {
+ // Create new array instead of pushing
+ setNewWorkflowTags([...newWorkflowTags, chip]);
+ }}
+ onDelete={(chip, index) => {
+ // Filter instead of splice
+ setNewWorkflowTags(newWorkflowTags.filter((_, i) => i !== index));
+ }}
+ variant="outlined"
+ />
+ {usecases !== null && usecases !== undefined && usecases.length > 0 ?
+
+ Usecases
+
+
+ : null}
+
+
+
+
+ {
+ if (event.target.value.toLowerCase() === "test") {
+ setStatus("test")
+ } else if (event.target.value.toLowerCase() === "production") {
+ setStatus("production")
+ }
+ }}
+ InputProps={{
+ style: {
+ color: "white",
+ backgroundColor: theme.palette.inputColor,
+ borderRadius: 8,
+ },
+ }}
+ color="primary"
+ label="Status"
+ defaultValue={status}
+ helperText="Can be test or production"
+ fullWidth
+ variant="outlined"
+ />
+ setBlogpost(event.target.value)}
+ InputProps={{
+ style: {
+ color: "white",
+ backgroundColor: theme.palette.inputColor,
+ borderRadius: 8,
+ },
+ }}
+ color="primary"
+ label="Reference"
+ defaultValue={blogpost}
+ helperText="Blogpost or documentation reference"
+ fullWidth
+ variant="outlined"
+ />
+ setDefaultReturnValue(event.target.value)}
+ InputProps={{
+ style: {
+ color: "white",
+ backgroundColor: theme.palette.inputColor,
+ borderRadius: 8,
+ },
+ }}
+ color="primary"
+ label="Default Return Value"
+ defaultValue={defaultReturnValue}
+ helperText="Used for Subflows if the subflow fails"
+ multiline
+ rows={3}
+ fullWidth
+ variant="outlined"
+ />
+
+
+
+
+