realne zestawienia: zapamiętywanie pozycji scrolla; ostatni wybrany pociąg

This commit is contained in:
2023-04-07 01:34:38 +02:00
parent 678c40dd9b
commit 27f9403c2d
3 changed files with 56 additions and 68 deletions
+1 -3
View File
@@ -154,9 +154,7 @@ export function chosenRealStock(state: IStore) {
const realStockObj = state.readyStockList.find((readyStock) => readyStock.stockString == currentStockString);
state.chosenRealStockName = realStockObj
? `${realStockObj.type} ${realStockObj.number} ${realStockObj.name}`
: undefined;
state.chosenRealStockName = realStockObj?.stockId ?? undefined;
return realStockObj;
}