diff --git a/web/src/TourConfig.js b/web/src/TourConfig.js index 0bb824ab..c9171677 100644 --- a/web/src/TourConfig.js +++ b/web/src/TourConfig.js @@ -218,6 +218,12 @@ export function getNextButtonChild(nextPathName) { : "Finish"; } -export function getSteps(pathName = window.location.pathname) { - return TourObj[(pathName.replace("/", ""))]; +export function getSteps() { + const path = window.location.pathname.replace("/", ""); + const res = TourObj[path]; + if (res === undefined) { + return []; + } else { + return res; + } }