Skip to content

Commit 1187dbd

Browse files
author
Brijesh
committed
Assign uuid value to pasture id when importing pasture to avoid over writing
1 parent df0902f commit 1187dbd

File tree

1 file changed

+1
-0
lines changed
  • src/components/rangeUsePlanPage/pastures

1 file changed

+1
-0
lines changed

src/components/rangeUsePlanPage/pastures/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const Pastures = ({ pastures, formik }) => {
7070
onClose={() => setImportPastureModalOpen(false)}
7171
onImport={(pasture) => {
7272
setImportPastureModalOpen(false);
73+
pasture.id = uuid();
7374
push(pasture);
7475
}}
7576
title="Import pasture"

0 commit comments

Comments
 (0)