Done
This commit is contained in:
parent
c31cbe28f7
commit
7db6880b31
|
|
@ -37,7 +37,7 @@ export function AddNewVariation(Varibletaps: any[], data: any, AddVariation: any
|
||||||
console.log(mappedAttributes, "mappedAttributes");
|
console.log(mappedAttributes, "mappedAttributes");
|
||||||
|
|
||||||
// Flatten the array of arrays
|
// Flatten the array of arrays
|
||||||
const flattenedAttributes = mappedAttributes?.flat();
|
const flattenedAttributes = mappedAttributes?.filter(Boolean)?.flat();
|
||||||
|
|
||||||
const arrayOfObjects = flattenedAttributes?.map((subArray: any, index: any) => {
|
const arrayOfObjects = flattenedAttributes?.map((subArray: any, index: any) => {
|
||||||
console.log(subArray, "subArray");
|
console.log(subArray, "subArray");
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ const ViewProduct = () => {
|
||||||
console.log(mappedAttributes, "mappedAttributes");
|
console.log(mappedAttributes, "mappedAttributes");
|
||||||
|
|
||||||
// Flatten the array of arrays
|
// Flatten the array of arrays
|
||||||
const flattenedAttributes = mappedAttributes?.flat();
|
const flattenedAttributes = mappedAttributes?.filter(Boolean)?.flat();
|
||||||
|
|
||||||
const arrayOfObjects = flattenedAttributes?.map((subArray: any, index: any) => {
|
const arrayOfObjects = flattenedAttributes?.map((subArray: any, index: any) => {
|
||||||
console.log(subArray, "subArray");
|
console.log(subArray, "subArray");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user