From 09629835bc44222440f6dcf36fc6b9f9c80f02b7 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Tue, 20 Feb 2024 13:14:49 -0500 Subject: [PATCH] Fix sidebar edit button --- src/pages/app/sidebar/projects/ProjectList.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/app/sidebar/projects/ProjectList.svelte b/src/pages/app/sidebar/projects/ProjectList.svelte index 1d96bd334..db050230d 100644 --- a/src/pages/app/sidebar/projects/ProjectList.svelte +++ b/src/pages/app/sidebar/projects/ProjectList.svelte @@ -3,16 +3,16 @@ import { _ } from "svelte-i18n"; import equal from "fast-deep-equal"; - import { User } from "../../../../api/types/orgAndUser"; + import type { Project, User } from "../../../../api/types"; import { getProjects } from "../../../../api/project"; import { projectUrl } from "../../../../search/search.js"; + import { Project as ProjectStructure } from "../../../../structure/project.js"; import Link from "../../../../router/Link.svelte"; import Button from "../../../../common/Button.svelte"; import ProjectListItem from "./ProjectListItem.svelte"; import ListHeader from "../ListHeader.svelte"; import { pinned as pinStore } from "../../../../projects/ProjectPin.svelte"; import { ChevronRight16, ChevronDown16 } from "svelte-octicons"; - import type { Project } from "../../../../api/types"; export let user: User; export let editProject; @@ -71,7 +71,7 @@ editProject(project) + ? () => editProject(new ProjectStructure(project)) : undefined} />