Web: Files: fixed re-rendering when checkbox is clicked

This commit is contained in:
Nikita Gopienko 2022-03-03 12:19:47 +03:00
parent 2978adcdf3
commit 5026e8d916

View File

@ -642,7 +642,7 @@ class FilesStore {
const isThirdPartyItem = !!item.providerKey;
const hasNew =
item.new > 0 || (item.fileStatus & FileStatus.IsNew) === FileStatus.IsNew;
const canConvert = false; //TODO: fix of added convert check;
const canConvert = this.filesSettingsStore.extsConvertible[item.fileExst];
const isEncrypted = item.encrypted;
const isDocuSign = false; //TODO: need this prop;
const isEditing =
@ -738,7 +738,7 @@ class FilesStore {
}
}
if (!this.canConvertSelected) {
if (!canConvert) {
fileOptions = this.removeOptions(fileOptions, ["download-as"]);
}