Sort mapping accounts (#497)
This commit is contained in:
parent
e55a3bbb96
commit
d2d82136c9
|
@ -36,7 +36,12 @@ function MinPublishers() {
|
|||
</thead>
|
||||
<tbody>
|
||||
{rawConfig.mappingAccounts.length ? (
|
||||
rawConfig.mappingAccounts[0].products.map((product) =>
|
||||
rawConfig.mappingAccounts
|
||||
.sort(
|
||||
(mapping1, mapping2) =>
|
||||
mapping2.products.length - mapping1.products.length
|
||||
)[0]
|
||||
.products.map((product) =>
|
||||
product.priceAccounts.map((priceAccount) => {
|
||||
return (
|
||||
<tr
|
||||
|
|
Loading…
Reference in New Issue