modal realnych zestawień: przerobiono wygląd; poprawiono performance

This commit is contained in:
2023-04-06 23:14:55 +02:00
parent cc06d5cb0a
commit 678c40dd9b
7 changed files with 194 additions and 142 deletions
+1 -3
View File
@@ -152,9 +152,7 @@ export function chosenRealStock(state: IStore) {
}, [] as string[])
.join(';');
const realStockObj = Object.values(state.readyStockList).find(
(readyStock) => readyStock.stockString == currentStockString
);
const realStockObj = state.readyStockList.find((readyStock) => readyStock.stockString == currentStockString);
state.chosenRealStockName = realStockObj
? `${realStockObj.type} ${realStockObj.number} ${realStockObj.name}`