Skip to content

Commit

Permalink
Fix sidebar edit button
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Feb 20, 2024
1 parent 01c0ee3 commit 0962983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/app/sidebar/projects/ProjectList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -71,7 +71,7 @@
<ProjectListItem
title={project.title}
onEditClick={project.edit_access
? () => editProject(project)
? () => editProject(new ProjectStructure(project))
: undefined}
/>
</Link>
Expand Down

0 comments on commit 0962983

Please sign in to comment.