Use correct tree hash for file path on diff page

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2023-07-12 14:43:50 +02:00
committed by Rūdolfs Ošiņš
parent 5db94a962d
commit 08a5a329c3
+3 -6
View File
@@ -427,13 +427,10 @@
</div>
{#if currentTab === "activity"}
{#if diff}
{#await api.project.getDiff(projectId, diff.split("..")[0], diff.split("..")[1]) then diff}
{@const [base, revision] = diff.split("..")}
{#await api.project.getDiff(projectId, base, revision) then { diff }}
<div style:margin-top="1rem">
<Changeset
{projectId}
{baseUrl}
revision={currentRevision.oid}
diff={diff.diff} />
<Changeset {projectId} {baseUrl} {revision} {diff} />
</div>
{:catch e}
<ErrorMessage