Skip to content

Commit

Permalink
remove edge payload
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Sep 17, 2024
1 parent 1a9cf17 commit 4fb98d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 358 deletions.
4 changes: 2 additions & 2 deletions libs/features/mas/mocks/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export async function withAem(originalFetch) {
'/test/mocks/sites/cf/fragments/search/authorPayload.json',
);
} else if (/cf\/fragments/.test(pathname) && searchParams.has('path')) {
const fragmentId = searchParams.get('fragmentId');
const path = searchParams.get('path');
const item = await originalFetch(
'/test/mocks/sites/cf/fragments/search/authorPayload.json',
)
.then((res) => res.json())
.then(({ items }) => items.find((item) => item.id === id));
.then(({ items }) => items.find((item) => item.path === path));
if (item) {
return Promise.resolve({
ok: true,
Expand Down
356 changes: 0 additions & 356 deletions libs/features/mas/mocks/sites/cf/fragments/search/edgePayload.json

This file was deleted.

0 comments on commit 4fb98d0

Please sign in to comment.