mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 13:37:34 +03:00
apply correct amount of deltas from a search result
This commit is contained in:
parent
cd6afbb9e9
commit
fbf05e842a
@ -39,7 +39,9 @@
|
||||
const { sessionId, projectId, filePath } = result;
|
||||
const [doc, deltas] = await Promise.all([
|
||||
listFiles({ projectId, sessionId, paths: [filePath] }).then((r) => r[filePath] ?? ''),
|
||||
listDeltas({ projectId, sessionId, paths: [filePath] }).then((r) => r[filePath] ?? [])
|
||||
listDeltas({ projectId, sessionId, paths: [filePath] })
|
||||
.then((r) => r[filePath] ?? [])
|
||||
.then((d) => d.slice(0, result.index + 1))
|
||||
]);
|
||||
processedResults = [
|
||||
...processedResults,
|
||||
|
Loading…
Reference in New Issue
Block a user