tauri-apps / tauri-apps/plugins-workspace
opener: revealItemInDir receives wrong `path` key
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
```ts
await revealItemInDir(save_to_path)
```
This fails with:
```
[Error] Unhandled Promise Rejection: invalid args `path` for command `reveal_item_in_dir`: command reveal_item_in_dir missing required key path
(anonymous function) (MyComponent.svelte:881)
```
I dived into the releases and suspect it happened here b8056f484c7144af095d4d6ded1e8adbb9b8a865
Specifically [here](https://github.com/tauri-apps/plugins-workspace/commit/b8056f484c7144af095d4d6ded1e8adbb9b8a865#diff-6743b8968c514fcd63497b23e71f26d43e7f71e3015c97298ea78af3d800ca26R98)
Quick workaround is manually calling the invoke command.
```rs
<<<<<<< HOTFIX
await invoke("plugin:opener|reveal_item_in_dir", { path: save_to_path })
=======
await revealItemInDir(save_to_path)
>>>>>>> BEFORE
```
Contributor guide
Assessment
This issue has not been assessed yet.