Fixed uuid issues during install

This commit is contained in:
frikky
2021-08-23 12:13:13 +02:00
parent 61f6793873
commit 430d3601cc
6 changed files with 43 additions and 26 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ import Dropzone from '../components/Dropzone';
import {Link} from 'react-router-dom';
import { useAlert } from "react-alert";
import ChipInput from 'material-ui-chip-input'
import uuid from "uuid"
import { v4 as uuidv4 } from 'uuid';
import CytoscapeWrapper from '../components/RenderCytoscape'
//import mobileImage from '../assets/img/mobile.svg';
@@ -783,7 +783,7 @@ const Workflows = (props) => {
trigger.status = "stopped"
}
const newId = uuid.v4()
const newId = uuidv4()
if (trigger.trigger_type === "WEBHOOK") {
const hookname = "webhook_"+newId
if (trigger.parameters !== undefined && trigger.parameters !== null && trigger.parameters.length === 2) {
@@ -831,7 +831,7 @@ const Workflows = (props) => {
}
}
const newId = uuid.v4()
const newId = uuidv4()
for (var branchkey in data.branches) {
const branch = data.branches[branchkey]
if (branch.source_id === data.actions[key].id) {