mirror of
https://github.com/stablyai/orca.git
synced 2026-10-12 16:03:03 +00:00
Fix mobile file explorer type narrowing
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user