Skip to content

Commit 687ce9d

Browse files
[AI] Fix TS2367 type overlap error in FileExplorer caused by an invalid 'renamed' type assumption
1 parent 22345e2 commit 687ce9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/chat/src/app/file-explorer/file-explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function FileExplorer({
171171
let changed = false;
172172
const nextExpanded = new Set(currentExpanded);
173173
for (const [p, type] of diff.entries()) {
174-
if (type === 'added' || type === 'renamed' || type === 'modified') {
174+
if (type === 'added' || type === 'modified') {
175175
const parts = p.split('/');
176176
let currentPath = '';
177177
for (let i = 0; i < parts.length - 1; i++) {

0 commit comments

Comments
 (0)