Skip to content

Commit

Permalink
[sitecore-jss-nextjs] Remove variantId from query in Comp Library (#2005
Browse files Browse the repository at this point in the history
)
  • Loading branch information
art-alexeyenko authored Dec 23, 2024
1 parent 1060868 commit 7ddd22d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Our versioning strategy is as follows:

### 🎉 New Features & Improvements

* `[nextjs][sitecore-jss-nextjs]` Support for Component Library feature in XMCloud ([#1987](https://github.com/Sitecore/jss/pull/1987)[#2000](https://github.com/Sitecore/jss/pull/2000)[#2002](https://github.com/Sitecore/jss/pull/2002))
* `[nextjs][sitecore-jss-nextjs]` Support for Component Library feature in XMCloud ([#1987](https://github.com/Sitecore/jss/pull/1987)[#2000](https://github.com/Sitecore/jss/pull/2000)[#2002](https://github.com/Sitecore/jss/pull/2002)[#2005](https://github.com/Sitecore/jss/pull/2005))

### 🐛 Bug Fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ describe('EditingRenderMiddleware', () => {
pageState: 'normal',
mode: 'library',
dataSourceId: query.sc_datasourceId,
variant: query.sc_variant,
version: query.sc_version,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ export class MetadataHandler {
pageState: LayoutServicePageState.Normal,
mode: 'library',
dataSourceId: query.sc_datasourceId,
variant: query.sc_variant || DEFAULT_VARIANT,
version: query.sc_version,
} as ComponentLibraryRenderPreviewData,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ describe('RestComponentLayoutService', () => {
sc_site: testParams.siteName,
sc_lang: testParams.language,
sc_mode: testParams.editMode,
sc_variant: testParams.variant,
};

// eslint-disable-next-line dot-notation
Expand Down Expand Up @@ -498,7 +497,6 @@ describe('RestComponentLayoutService', () => {
renderingItemId: testParams.renderingId,
sc_lang: testParams.language,
sc_mode: testParams.editMode,
sc_variant: testParams.variant,
};

// eslint-disable-next-line dot-notation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export interface ComponentLayoutRequestParams {
* site name to be used as context for rendering the component
*/
siteName?: string;
/**
* variant to be rendered for component if set (works with rendering existing component)
*/
variant?: string;
}

/**
Expand Down Expand Up @@ -96,7 +92,6 @@ export class RestComponentLayoutService extends RestLayoutService {
sc_site: params.siteName,
sc_lang: params.language || 'en',
sc_mode: params.editMode,
sc_variant: params.variant,
})
);
}
Expand Down

0 comments on commit 7ddd22d

Please sign in to comment.