Compare commits
No commits in common. "0162c8acf098c6dd38d69fb8dc96d7359204bd01" and "a5b2975f3849aaaffe6098eb987d283d98974385" have entirely different histories.
0162c8acf0
...
a5b2975f38
|
@ -19,9 +19,7 @@ export default function WorkspaceNavigation({ workspaces }: { workspaces: Pick<W
|
|||
const router = useRouter();
|
||||
|
||||
function onWorkspaceSelectionChange(workspace: Pick<Workspace, 'id'>) {
|
||||
router.push(`/${workspaces.find((w) => w.id === workspace.id)?.slug}/${pathname.split('/')[2]}`);
|
||||
|
||||
// router.push(`/${workspaces.find((w) => w.id === workspace.id)?.slug}`);
|
||||
router.push(`/${workspaces.find((w) => w.id === workspace.id)?.slug}`);
|
||||
}
|
||||
|
||||
function findSelectedWorkspace(): Pick<Workspace, 'id'> | null {
|
||||
|
|
|
@ -223,8 +223,6 @@ export default function DatabaseNewForm() {
|
|||
.then((res) => {
|
||||
console.log(res);
|
||||
setOpen(false);
|
||||
setCurrentSteps(1);
|
||||
setDatabaseConfig(defaultDatabaseConfig);
|
||||
router.refresh();
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
Loading…
Reference in New Issue