We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322f15f commit a4a1e1aCopy full SHA for a4a1e1a
apps/array/src/renderer/features/code-editor/components/DiffEditorPanel.tsx
@@ -34,7 +34,7 @@ export function DiffEditorPanel({
34
(s) => s.closeDiffTabsForFile,
35
);
36
37
- const { data: changedFiles = [] } = useQuery({
+ const { data: changedFiles = [], isLoading: loadingChangelist } = useQuery({
38
queryKey: ["changed-files-head", repoPath],
39
queryFn: () =>
40
trpcVanilla.git.getChangedFilesHead.query({
@@ -96,7 +96,9 @@ export function DiffEditorPanel({
96
97
98
const isLoading =
99
- (!isDeleted && loadingModified) || (!isNew && loadingOriginal);
+ loadingChangelist ||
100
+ (!isDeleted && loadingModified) ||
101
+ (!isNew && loadingOriginal);
102
103
const hasNoChanges =
104
!!repoPath &&
0 commit comments