Handle promise rejection exceptions from actionSheet (#6817)

* Add catches to jellyfin

* Undo format changes to actionSheet

* formatting

* Remove logging

* commented block for screenshot

* Handle another case

* weird indentation fix

* Add myself as a contributor
This commit is contained in:
Diego Echeverri
2025-05-13 23:01:18 +02:00
committed by GitHub
parent 94287fb5cd
commit 586e3060e4
4 changed files with 7 additions and 4 deletions
@@ -212,7 +212,9 @@ function initEditor(content, options, fileOptions) {
let networkSharePath = this.querySelector('#txtNetworkPath');
networkSharePath = networkSharePath ? networkSharePath.value : null;
const path = this.querySelector('#txtDirectoryPickerPath').value;
validatePath(path, options.validateWriteable, ApiClient).then(options.callback(path, networkSharePath));
validatePath(path, options.validateWriteable, ApiClient).then(
options.callback(path, networkSharePath)
).catch(() => { /* no-op */ });
}
e.preventDefault();
e.stopPropagation();