fix: s3 copy overwrite/sync buttons (#1983)

The copy overwrite/sync buttons were not appearing on s3 do to s3
operations having different error messages. This accounts for those so
the options will be available with those files as well.
This commit is contained in:
Sylvie Crowe 2025-02-18 04:50:04 -08:00 committed by GitHub
parent e15d38a795
commit 7c25ebfcb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -903,8 +903,9 @@ function DirectoryPreview({ model }: DirectoryPreviewProps) {
console.log("copy failed:", e);
const copyError = `${e}`;
const allowRetry =
copyError.endsWith("overwrite not specified") ||
copyError.endsWith("neither overwrite nor merge specified");
copyError.includes("overwrite not specified") ||
copyError.includes("neither overwrite nor merge specified") ||
copyError.includes("neither merge nor overwrite specified");
const copyStatus: FileCopyStatus = {
copyError,
copyData: data,