Skip to content
Snippets Groups Projects
Commit 3b6b8e0b authored by Robin Leber's avatar Robin Leber
Browse files

Nachtrag id 2

parent 8570fa05
No related branches found
No related tags found
No related merge requests found
...@@ -2,13 +2,13 @@ import { v4 as uuidv4 } from "uuid"; ...@@ -2,13 +2,13 @@ import { v4 as uuidv4 } from "uuid";
import { createEndpoints } from "./endpoints"; import { createEndpoints } from "./endpoints";
import { appState } from "./state"; import { appState } from "./state";
import { showWarning } from "./visualValidation"; import { showWarning } from "./visualValidation";
import { shortenId } from "./id"; import { coorectId } from "./id";
export const duplicatePipe = (instance) => { export const duplicatePipe = (instance) => {
const selectedPipe = document.getElementById(window.selectedPipe); const selectedPipe = document.getElementById(window.selectedPipe);
const newPipe = selectedPipe.cloneNode(true); const newPipe = selectedPipe.cloneNode(true);
newPipe.id = shortenId(uuidv4()); newPipe.id = coorectId(uuidv4());
const top = selectedPipe.offsetTop + 36; const top = selectedPipe.offsetTop + 36;
const topStr = top.toString() + "px"; const topStr = top.toString() + "px";
...@@ -31,7 +31,7 @@ export const duplicateFilter = (instance) => { ...@@ -31,7 +31,7 @@ export const duplicateFilter = (instance) => {
const selectedFilter = document.getElementById(window.selectedFilter); const selectedFilter = document.getElementById(window.selectedFilter);
const newFilter = selectedFilter.cloneNode(true); const newFilter = selectedFilter.cloneNode(true);
newFilter.id = shortenId(uuidv4()); newFilter.id = coorectId(uuidv4());
const top = selectedFilter.offsetTop + 48; const top = selectedFilter.offsetTop + 48;
const topStr = top.toString() + "px"; const topStr = top.toString() + "px";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment