Skip to content

Commit

Permalink
wip: Handle async views
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 7, 2023
1 parent 2ce327e commit 85c6680
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const config: PlaywrightTestConfig = {
webServer: {
command: `pnpm ui`,
port: 3000,
reuseExistingServer: false,
reuseExistingServer: !process.env.CI,
},
/* Configure projects for major browsers */
projects: [
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/authenticated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { makeTitle } from "./utils";
import { authenticatedView } from "./views/authenticated";

const editorRoutes = compose(
withView(authenticatedView),
withView(async () => await authenticatedView()),

mount({
"/": route(async () => {
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let cached: { flowSlug?: string; teamSlug?: string } = {
};

const routes = compose(
withView(teamView),
withView(async (req) => await teamView(req)),

mount({
"/": route(() => ({
Expand Down

0 comments on commit 85c6680

Please sign in to comment.