Refactor Container Copy dropdowns with integrated state management (#2279)

This commit is contained in:
BChoudhury-ms
2025-12-15 12:25:05 +05:30
committed by GitHub
parent d67c1a0464
commit bc7e8a71ca
22 changed files with 955 additions and 2707 deletions

View File

@@ -433,7 +433,7 @@ describe("CopyJobActions", () => {
(dataTransferService.listByDatabaseAccount as jest.Mock).mockRejectedValue(abortError);
await expect(getCopyJobs()).rejects.toMatchObject({
message: expect.stringContaining("Please wait for the current fetch request to complete"),
message: expect.stringContaining("Previous copy job request was cancelled."),
});
});

View File

@@ -124,8 +124,7 @@ export const getCopyJobs = async (): Promise<CopyJobType[]> => {
const errorContent = JSON.stringify(error.content || error.message || error);
if (errorContent.includes("signal is aborted without reason")) {
throw {
message:
"Please wait for the current fetch request to complete. The previous copy job fetch request was aborted.",
message: "Previous copy job request was cancelled.",
};
} else {
throw error;