Fix mobile file explorer type narrowing

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-05-11 22:10:55 -04:00
co-authored by Orca
parent 12e0f0f416
commit 57fbee9d22
+1 -1
View File
@@ -201,7 +201,7 @@ export default function MobileFileExplorerScreen() {
onPress={() => {
if (isDirectory) {
toggleDirectory(item.relativePath)
} else {
} else if (item.kind === 'text' || item.kind === 'binary') {
void openFile(item.relativePath, item.kind)
}
}}