Skip to content

Commit

Permalink
CMS-602: Remove unused fields from graphql queries (#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumi-oxd authored Dec 24, 2024
1 parent 71ced23 commit 0acc115
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@
"type": "time"
},
"gateNote": {
"type": "text"
"type": "customField",
"options": {
"preset": "toolbar"
},
"customField": "plugin::ckeditor5.CKEditor"
},
"gateOpensAtDawn": {
"type": "boolean"
Expand Down
1 change: 0 additions & 1 deletion src/gatsby/src/components/park/subArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { countsList } from "../../utils/constants"
export default function SubArea({ data, showHeading }) {

const subAreasNotesList = [
{ noteVar: "generalNote", display: "Note" },
{ noteVar: "serviceNote", display: "Service note" },
{ noteVar: "reservationNote", display: "Booking note" },
{ noteVar: "offSeasonNote", display: "Winter season note" },
Expand Down
40 changes: 0 additions & 40 deletions src/gatsby/src/templates/park.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,36 +660,6 @@ export const query = graphql`
openNote
}
}
serviceNote {
data {
serviceNote
}
}
reservationsNote {
data {
reservationsNote
}
}
reservationNote {
data {
reservationNote
}
}
offSeasonNote {
data {
offSeasonNote
}
}
generalNote {
data {
generalNote
}
}
adminNote {
data {
adminNote
}
}
gateOpenTime
gateCloseTime
gateOpensAtDawn
Expand Down Expand Up @@ -747,11 +717,6 @@ export const query = graphql`
yurts
shelters
boatLaunches
openNote {
data {
openNote
}
}
serviceNote {
data {
serviceNote
Expand All @@ -767,11 +732,6 @@ export const query = graphql`
offSeasonNote
}
}
adminNote {
data {
adminNote
}
}
closureAffectsAccessStatus
parkOperationSubAreaDates {
isActive
Expand Down
40 changes: 0 additions & 40 deletions src/gatsby/src/templates/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,6 @@ export const query = graphql`
yurts
shelters
boatLaunches
openNote {
data {
openNote
}
}
serviceNote {
data {
serviceNote
Expand All @@ -478,11 +473,6 @@ export const query = graphql`
offSeasonNote
}
}
adminNote {
data {
adminNote
}
}
closureAffectsAccessStatus
parkOperationSubAreaDates {
isActive
Expand Down Expand Up @@ -604,36 +594,6 @@ export const query = graphql`
openNote
}
}
serviceNote {
data {
serviceNote
}
}
reservationsNote {
data {
reservationsNote
}
}
reservationNote {
data {
reservationNote
}
}
offSeasonNote {
data {
offSeasonNote
}
}
generalNote {
data {
generalNote
}
}
adminNote {
data {
adminNote
}
}
gateOpenTime
gateCloseTime
gateOpensAtDawn
Expand Down

0 comments on commit 0acc115

Please sign in to comment.