diff --git a/src/components/data/toolbar/DataDotMenu.js b/src/components/data/toolbar/DataDotMenu.js index 2c1c84e52..651dd2487 100644 --- a/src/components/data/toolbar/DataDotMenu.js +++ b/src/components/data/toolbar/DataDotMenu.js @@ -458,7 +458,9 @@ function DataDotMenu(props) { onClose={() => setPathListDlgOpen(false)} onCreatePathList={(id, path) => { setPathListDlgOpen(false); - routeToFile(id, path); + if (id && path) { + routeToFile(id, path); + } }} onCancel={() => setPathListDlgOpen(false)} startingPath={path}