Handle Windows not having an appropriate app for SciNote Edit [SCI-9862]

This commit is contained in:
Ivan Kljun 2024-01-11 10:41:11 +01:00
parent 1a8e9c48ad
commit 22b7424884

View file

@ -37,7 +37,9 @@ export default {
`${this.attachment.attributes.urls.open_locally_api}/default-application/${this.attachment.attributes.file_extension}`
);
this.localAppName = response.data.application;
if (response.data.application.toLowerCase() !== 'pick an app') {
this.localAppName = response.data.application;
}
} catch (error) {
console.error('Error in request: ', error);
}