From 4529d3902679b7cb4753cb0c478856e4acb77147 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Fri, 8 Dec 2023 10:24:04 -0500 Subject: [PATCH] 21128: reset context menu resource type, fixed spelling error in spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- cypress/integration/project.spec.js | 6 +++--- src/views-components/context-menu/context-menu.tsx | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js index e61138219d..e4d7be87fb 100644 --- a/cypress/integration/project.spec.js +++ b/cypress/integration/project.spec.js @@ -473,7 +473,7 @@ describe("Project tests", function () { }); }); - it("should be able to froze own project", () => { + it("should be able to freeze own project", () => { cy.getAll("@mainProject").then(([mainProject]) => { cy.loginAs(activeUser); @@ -503,7 +503,7 @@ describe("Project tests", function () { }); }); - it("should be able to froze not owned project", () => { + it("should be able to freeze not owned project", () => { cy.getAll("@adminProject").then(([adminProject]) => { cy.loginAs(activeUser); @@ -515,7 +515,7 @@ describe("Project tests", function () { }); }); - it("should be able to unfroze project if user is an admin", () => { + it("should be able to unfreeze project if user is an admin", () => { cy.getAll("@adminProject").then(([adminProject]) => { cy.loginAs(adminUser); diff --git a/src/views-components/context-menu/context-menu.tsx b/src/views-components/context-menu/context-menu.tsx index 877d927a1b..aeb69de762 100644 --- a/src/views-components/context-menu/context-menu.tsx +++ b/src/views-components/context-menu/context-menu.tsx @@ -16,7 +16,6 @@ type DataProps = Pick & { resou const mapStateToProps = (state: RootState): DataProps => { const { open, position, resource } = state.contextMenu; - const fullResource = resource ? state.resources[resource?.uuid] as any : resource const filteredItems = getMenuActionSet(resource).map(group => group.filter(item => { if (resource && item.filters) { @@ -32,7 +31,7 @@ const mapStateToProps = (state: RootState): DataProps => { anchorEl: resource ? createAnchorAt(position) : undefined, items: filteredItems, open, - resource: fullResource, + resource, }; }; -- 2.30.2