Skip to content

Commit 7c25ebf

Browse files
authored
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.
1 parent e15d38a commit 7c25ebf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/app/view/preview/directorypreview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,9 @@ function DirectoryPreview({ model }: DirectoryPreviewProps) {
903903
console.log("copy failed:", e);
904904
const copyError = `${e}`;
905905
const allowRetry =
906-
copyError.endsWith("overwrite not specified") ||
907-
copyError.endsWith("neither overwrite nor merge specified");
906+
copyError.includes("overwrite not specified") ||
907+
copyError.includes("neither overwrite nor merge specified") ||
908+
copyError.includes("neither merge nor overwrite specified");
908909
const copyStatus: FileCopyStatus = {
909910
copyError,
910911
copyData: data,

0 commit comments

Comments
 (0)