Always go to the board when switching projects

This commit is contained in:
Mattias Granlund 2023-12-12 15:41:45 +01:00
parent 838150c7a4
commit 867d82efde

View File

@ -16,10 +16,6 @@
export function hide() {
hidden = true;
}
function changeProject(projectId: string) {
goto(location.href.replace($page.params.projectId, projectId));
}
</script>
{#if !hidden}
@ -33,7 +29,7 @@
icon={selected ? 'tick' : undefined}
on:click={() => {
hide();
changeProject(project.id);
goto(`/${project.id}/board`);
}}
>
{project.title}