Skip to content

Commit

Permalink
safeguard for types
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark committed Nov 21, 2023
1 parent f8133ea commit fb28430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/search-facet-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const VERSION_GROUP_ID = 'version';
// and remove its parent selection as child facet selection implies parent facet
export const SINGLE_SELECT_FIELDS = [VERSION_GROUP_ID];

export const requestHeaders = process.env['GATSBY_MARIAN_URL'].includes('staging')
export const requestHeaders = process.env['GATSBY_MARIAN_URL']?.includes('staging')
? {
credentials: 'include',
}
Expand Down

0 comments on commit fb28430

Please sign in to comment.