ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit e520fccb7cf0f09d57921ff4f9c912792e37b27d
parent e2e8fbd5e1885abc65e136bb4df64500b9259ef2
Author: Yureka <yuka@yuka.dev>
Date: Wed, 18 Aug 2021 18:45:22 +0200

fix "set from/to"
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/src/searchView.js b/client/src/searchView.js
@@ -335,7 +335,7 @@ export const swapFromTo = () => {
 };
 
 export const setFromHistory = async id => {
-	const entry = await getJourneysHistory()[id];
+	const entry = (await getJourneysHistory())[id];
 	if (!entry) return;
 	setSuggestion(entry.fromPoint, 'from');
 	setSuggestion(entry.toPoint, 'to');