diff --git a/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.test.tsx b/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.test.tsx index f59445b4ca..41dd52cbe1 100644 --- a/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.test.tsx +++ b/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.test.tsx @@ -12,8 +12,8 @@ test("adding an external portal", async () => { setup( , @@ -45,8 +45,8 @@ test("changing an external portal", async () => { id="test" flowId="b" flows={[ - { id: "a", text: "flow a" }, - { id: "b", text: "flow b" }, + { id: "a", name: "flow a", slug: "flow-a", team: "team" }, + { id: "b", name: "flow b", slug: "flow-b", team: "team" }, ]} handleSubmit={handleSubmit} />, diff --git a/editor.planx.uk/src/routes/flow.tsx b/editor.planx.uk/src/routes/flow.tsx index 5746ff271c..e1c67c9c3b 100644 --- a/editor.planx.uk/src/routes/flow.tsx +++ b/editor.planx.uk/src/routes/flow.tsx @@ -56,7 +56,7 @@ const getExternalPortals = async () => { slug, team: team.name, })) - .sort((a, b) => { + .sort((a: Flow, b: Flow) => { if (a.team > b.team) { return 1; } else if (b.team > a.team) {