Returned to using correct uuid lib

This commit is contained in:
Rupenieks 2020-09-02 09:16:16 +02:00
parent 4343bec2e0
commit 1cdf0164e9

View file

@ -127,7 +127,7 @@ import NodeSettings from '@/components/NodeSettings.vue';
import RunData from '@/components/RunData.vue';
import mixins from 'vue-typed-mixins';
import { uuid } from 'uuidv4';
import { v4 as uuidv4} from 'uuid';
import { debounce, isEqual } from 'lodash';
import axios from 'axios';
import {
@ -974,7 +974,7 @@ export default mixins(
newNodeData.name = this.getUniqueNodeName(newNodeData.name);
if (nodeTypeData.webhooks && nodeTypeData.webhooks.length) {
newNodeData.webhookId = uuid();
newNodeData.webhookId = uuidv4();
}
await this.addNodes([newNodeData]);