chore: upgrade deps
This commit is contained in:
@@ -169,11 +169,11 @@ export const AttachedFilesButton: FunctionComponent<Props> = observer(
|
||||
let result: SNFile | undefined;
|
||||
if (file.protected) {
|
||||
keepMenuOpen(true);
|
||||
result = await application.protections.unprotectFile(file);
|
||||
result = await application.mutator.unprotectFile(file);
|
||||
keepMenuOpen(false);
|
||||
buttonRef.current?.focus();
|
||||
} else {
|
||||
result = await application.protections.protectFile(file);
|
||||
result = await application.mutator.protectFile(file);
|
||||
}
|
||||
const isProtected = result ? result.protected : file.protected;
|
||||
return isProtected;
|
||||
|
||||
@@ -105,7 +105,7 @@ export const DataBackups = observer(({ application, appState }: Props) => {
|
||||
|
||||
let statusText = STRING_IMPORT_SUCCESS;
|
||||
if ('error' in result) {
|
||||
statusText = result.error;
|
||||
statusText = result.error.text;
|
||||
} else if (result.errorCount) {
|
||||
statusText = StringImportError(result.errorCount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user