Skip to content

Commit ac3df95

Browse files
PavelLaptevCopilot
andauthored
Update apps/desktop/src/lib/stacks/stackService.svelte.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9f857f3 commit ac3df95

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

apps/desktop/src/lib/stacks/stackService.svelte.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,21 +1175,7 @@ function injectEndpoints(api: ClientState['backendApi'], uiState: UiState) {
11751175
],
11761176
transformResponse(rsp: CommitDetails) {
11771177
const changes = changesAdapter.addMany(changesAdapter.getInitialState(), rsp.changes);
1178-
const rawStats = rsp.stats as
1179-
| TreeStats
1180-
| {
1181-
lines_added: number;
1182-
lines_removed: number;
1183-
files_changed: number;
1184-
};
1185-
const stats =
1186-
'linesAdded' in rawStats
1187-
? rawStats
1188-
: {
1189-
linesAdded: rawStats.lines_added,
1190-
linesRemoved: rawStats.lines_removed,
1191-
filesChanged: rawStats.files_changed
1192-
};
1178+
const stats = rsp.stats as TreeStats;
11931179
return {
11941180
changes: changes,
11951181
details: rsp.commit,

0 commit comments

Comments
 (0)