diff --git a/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx b/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx index a78d3c45a6..152b3b3386 100644 --- a/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx +++ b/dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx @@ -69,7 +69,7 @@ const DatabaseDashboard: React.FC = () => { }, [datastores, searchValue, typeFilter]); const renderContents = (): JSX.Element => { - if (!currentProject?.db_enabled) { + if (!currentProject?.sandbox_enabled && !currentProject?.db_enabled) { return ( Datastores are not enabled for this project diff --git a/dashboard/src/main/home/sidebar/Sidebar.tsx b/dashboard/src/main/home/sidebar/Sidebar.tsx index c252b4f154..04e6703caa 100644 --- a/dashboard/src/main/home/sidebar/Sidebar.tsx +++ b/dashboard/src/main/home/sidebar/Sidebar.tsx @@ -319,6 +319,12 @@ class Sidebar extends Component { Datastores + {match(currentProject) + .with({ sandbox_enabled: true }, () => NEW) + .with({ db_enabled: false }, () => ( + + )) + .otherwise(() => null)} {!currentProject.sandbox_enabled && (