From 022bfd55f74f9f48392432a8f74025f16ea05a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 13 Jun 2023 17:01:10 +0200 Subject: [PATCH] Fix patch revision selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a regression we introduced in https://github.com/radicle-dev/radicle-interface/pull/767. Signed-off-by: Rūdolfs Ošiņš --- src/views/projects/Patch.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/projects/Patch.svelte b/src/views/projects/Patch.svelte index 1151eb7e6..6a596b730 100644 --- a/src/views/projects/Patch.svelte +++ b/src/views/projects/Patch.svelte @@ -54,7 +54,7 @@ import Dropdown from "@app/components/Dropdown.svelte"; import DropdownItem from "@app/components/Dropdown/DropdownItem.svelte"; import ErrorMessage from "@app/components/ErrorMessage.svelte"; - import Floating from "@app/components/Floating.svelte"; + import Floating, { closeFocused } from "@app/components/Floating.svelte"; import Icon from "@app/components/Icon.svelte"; import Markdown from "@app/components/Markdown.svelte"; import Placeholder from "@app/components/Placeholder.svelte"; @@ -135,7 +135,7 @@ disabled: false, })); - const currentRevision = + $: currentRevision = patch.revisions.find(r => r.id === revision) || patch.revisions[0]; $: timelineTuple = patch.revisions.map< [ @@ -342,6 +342,7 @@