Fixed appcreator uuid bug
This commit is contained in:
@@ -6,7 +6,7 @@ import {BrowserView, MobileView} from "react-device-detect";
|
|||||||
import {Paper, Typography, FormControlLabel, Button, Divider, Select, MenuItem, FormControl, Switch, Dialog, DialogTitle, DialogContent, DialogActions, TextField, Tooltip, Breadcrumbs, CircularProgress, Chip} from '@material-ui/core';
|
import {Paper, Typography, FormControlLabel, Button, Divider, Select, MenuItem, FormControl, Switch, Dialog, DialogTitle, DialogContent, DialogActions, TextField, Tooltip, Breadcrumbs, CircularProgress, Chip} from '@material-ui/core';
|
||||||
import {LockOpen as LockOpenIcon, FileCopy as FileCopyIcon, Delete as DeleteIcon, Remove as RemoveIcon, Add as AddIcon, CheckCircle as CheckCircleIcon, AttachFile as AttachFileIcon, Apps as AppsIcon, ErrorOutline as ErrorOutlineIcon} from '@material-ui/icons';
|
import {LockOpen as LockOpenIcon, FileCopy as FileCopyIcon, Delete as DeleteIcon, Remove as RemoveIcon, Add as AddIcon, CheckCircle as CheckCircleIcon, AttachFile as AttachFileIcon, Apps as AppsIcon, ErrorOutline as ErrorOutlineIcon} from '@material-ui/icons';
|
||||||
|
|
||||||
import uuid from "uuid";
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import {Link} from 'react-router-dom';
|
import {Link} from 'react-router-dom';
|
||||||
import YAML from 'yaml'
|
import YAML from 'yaml'
|
||||||
import ChipInput from 'material-ui-chip-input'
|
import ChipInput from 'material-ui-chip-input'
|
||||||
@@ -2481,7 +2481,7 @@ const AppCreator = (props) => {
|
|||||||
tags: passedTags,
|
tags: passedTags,
|
||||||
execution_org: passedOrg,
|
execution_org: passedOrg,
|
||||||
org_id: passedOrg.id,
|
org_id: passedOrg.id,
|
||||||
id: uuid.v4(),
|
id: uuidv4(),
|
||||||
isValid: true,
|
isValid: true,
|
||||||
owner: owner,
|
owner: owner,
|
||||||
created: Date.now(),
|
created: Date.now(),
|
||||||
@@ -2697,7 +2697,7 @@ const AppCreator = (props) => {
|
|||||||
usage: [{
|
usage: [{
|
||||||
workflow_id: workflow.id,
|
workflow_id: workflow.id,
|
||||||
}],
|
}],
|
||||||
id: uuid.v4(),
|
id: uuidv4(),
|
||||||
active: true,
|
active: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user