eleven-solutions-common-website-unique-web 6.0.53 → 6.0.55
Sign up to get free protection for your applications and to get access to all the features.
@@ -251,19 +251,8 @@ const TaxonomyForm = () => {
|
|
251
251
|
setSubCode("");
|
252
252
|
setSubValue("");
|
253
253
|
});
|
254
|
-
// const handleSubEdit = (index: number, id: string) => {
|
255
|
-
// setIsAddingSubType(false);
|
256
|
-
// const item = similarTaxonomies[index];
|
257
|
-
// setSelectedTaxonomyId(id);
|
258
|
-
// setEditTaxonomyItem(item);
|
259
|
-
// setSubType(item.type);
|
260
|
-
// setSubCode(item.code);
|
261
|
-
// setSubValue(item.value);
|
262
|
-
// setIsModalOpen(true);
|
263
|
-
// setIsAddingSubType(true);
|
264
|
-
// };
|
265
254
|
const handleSubEdit = (child) => {
|
266
|
-
setIsAddingSubType(false);
|
255
|
+
// setIsAddingSubType(false);
|
267
256
|
setSelectedTaxonomyId(child.id);
|
268
257
|
setEditTaxonomyItem(child);
|
269
258
|
setSubType(child.type);
|
package/package.json
CHANGED
@@ -308,27 +308,13 @@ const TaxonomyForm = () => {
|
|
308
308
|
setSubValue("");
|
309
309
|
};
|
310
310
|
|
311
|
-
// const handleSubEdit = (index: number, id: string) => {
|
312
|
-
// setIsAddingSubType(false);
|
313
|
-
|
314
|
-
// const item = similarTaxonomies[index];
|
315
|
-
// setSelectedTaxonomyId(id);
|
316
|
-
|
317
|
-
// setEditTaxonomyItem(item);
|
318
|
-
// setSubType(item.type);
|
319
|
-
// setSubCode(item.code);
|
320
|
-
// setSubValue(item.value);
|
321
|
-
// setIsModalOpen(true);
|
322
|
-
// setIsAddingSubType(true);
|
323
|
-
// };
|
324
|
-
|
325
311
|
const handleSubEdit = (child: {
|
326
312
|
id: string;
|
327
313
|
type: string;
|
328
314
|
code: string;
|
329
315
|
value: string;
|
330
316
|
}) => {
|
331
|
-
setIsAddingSubType(false);
|
317
|
+
// setIsAddingSubType(false);
|
332
318
|
|
333
319
|
setSelectedTaxonomyId(child.id);
|
334
320
|
setEditTaxonomyItem(child);
|