(at: string)
| 353 | }; |
| 354 | |
| 355 | const browse = async (at: string): Promise<void> => { |
| 356 | try { |
| 357 | const level = await source.browse(at); |
| 358 | if (mounted.current) { |
| 359 | setBrowseLevel(level); |
| 360 | setBrowseError(''); |
| 361 | } |
| 362 | } catch (error) { |
| 363 | if (mounted.current) { |
| 364 | setBrowseError(text.browseError(describeError(error))); |
| 365 | } |
| 366 | } |
| 367 | }; |
| 368 | |
| 369 | const changePath = (value: string): void => { |
| 370 | setPath(value); |
no test coverage detected