From 18a729d7ceb628dd8d01232f337fd14e9863bd96 Mon Sep 17 00:00:00 2001 From: aviupadhyayula Date: Sun, 24 Sep 2023 18:24:59 -0400 Subject: [PATCH] Update uuid import from default --- frontend/components/FormComponents.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/FormComponents.tsx b/frontend/components/FormComponents.tsx index c3e58ea06..a6edf3c5f 100644 --- a/frontend/components/FormComponents.tsx +++ b/frontend/components/FormComponents.tsx @@ -16,7 +16,7 @@ import DatePicker from 'react-datepicker' import Select from 'react-select' import CreatableSelect from 'react-select/creatable' import styled from 'styled-components' -import uuid from 'uuid' +import { v4 as uuidv4 } from 'uuid' import { DynamicQuestion } from '../types' import { titleize } from '../utils' @@ -527,7 +527,7 @@ export const DynamicQuestionField = useFieldWrapper( const addField = (type: string): void => { values.push({ - name: uuid.v4(), + name: uuidv4(), label: '', type: type, choices: [],