Skip to content

Commit

Permalink
chore: post-merge build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Dec 11, 2024
1 parent 15e7fe2 commit ce39482
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
18 changes: 15 additions & 3 deletions .storybook/public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* - Please do NOT serve this file on production.
*/

const PACKAGE_VERSION = '2.6.5'
const INTEGRITY_CHECKSUM = 'ca7800994cc8bfb5eb961e037c877074'
const PACKAGE_VERSION = '2.6.8'
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
const activeClientIds = new Set()

Expand Down Expand Up @@ -199,7 +199,19 @@ async function getResponse(event, client, requestId) {
// Remove the "accept" header value that marked this request as passthrough.
// This prevents request alteration and also keeps it compliant with the
// user-defined CORS policies.
headers.delete('accept', 'msw/passthrough')
const acceptHeader = headers.get('accept')
if (acceptHeader) {
const values = acceptHeader.split(',').map((value) => value.trim())
const filteredValues = values.filter(
(value) => value !== 'msw/passthrough',
)

if (filteredValues.length > 0) {
headers.set('accept', filteredValues.join(', '))
} else {
headers.delete('accept')
}
}

return fetch(requestClone, { headers })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@ export const Basic: StoryObj<DateInputComponent & FormFieldComponent> = {
label: 'Label',
tooltip: 'Tooltip message',
hiddenLabel: false,
required: true,
inlineMessage: 'Helper Text',
inlineMessageState: 'default',
// DateInput
disableOverflow: false,
hideOverflow: false,
enableOverflow: false,
showOverflow: false,
hideToday: false,
hasTodayButton: false,
hideWeekend: false,
Expand Down

0 comments on commit ce39482

Please sign in to comment.