Skip to content

Commit

Permalink
fix: Correct destructuring in queries for teamSettings (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jul 12, 2024
1 parent 90de566 commit e1bc433
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion api.planx.uk/modules/saveAndReturn/service/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,16 @@ const validateSingleSessionRequest = async (
team {
name
slug
settings: team_settings
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
helpEmail: help_email
helpPhone: help_phone
helpOpeningHours: help_opening_hours
emailReplyToId: email_reply_to_id
boundaryBBox: boundary_bbox
}
domain
}
}
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/draft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const fetchSettingsForDraftView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/published.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const fetchSettingsForPublishedView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/standalone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const fetchDataForStandaloneView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down

0 comments on commit e1bc433

Please sign in to comment.