Skip to content

Commit

Permalink
Merge pull request #3184 from microsoft-search/develop
Browse files Browse the repository at this point in the history
v4.9.2 Bugfix for preselect filter regression
  • Loading branch information
wobba authored Aug 8, 2023
2 parents 7d4ab34 + 3746645 commit 284e2bd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions search-extensibility/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion search-parts/config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"solution": {
"name": "PnP Modern Search - Search Web Parts - v4",
"id": "59903278-dd5d-4e9e-bef6-562aae716b8b",
"version": "4.9.1.0",
"version": "4.9.2.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"isDomainIsolated": false,
Expand Down
28 changes: 14 additions & 14 deletions search-parts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion search-parts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pnp/modern-search-web-parts",
"version": "4.9.1",
"version": "4.9.2",
"private": true,
"main": "lib/index.js",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions search-parts/src/helpers/DateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class DateHelper {
];

// Moment is by default 'en-us'
if (!culture.startsWith('en-us') && culture !== "en") {
// check if culture must be used with two letter name in momentjs
if (!culture.startsWith('en-us') && momentTwoLetterLanguageName.some((c) => c == culture)) {
// check if culture must be used with two letter name in momentjs
for (let i = 0; i < momentTwoLetterLanguageName.length; i++)
if (culture.startsWith(momentTwoLetterLanguageName[i])) {
culture = culture.split('-')[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class SearchFiltersContainer extends React.Component<ISearchFilte

// When new filters are received from the data source
if (!isEqual(prevProps.availableFilters, this.props.availableFilters)
|| !isEqual(prevState.currentUiFilters, this.state.currentUiFilters)) {
|| (!isEqual(prevState.currentUiFilters, this.state.currentUiFilters)) && prevState.currentUiFilters.length > 0) {

this.getFiltersDeepLink();
this.getFiltersToDisplay(this.props.availableFilters, this.state.currentUiFilters, this.props.filtersConfiguration);
Expand Down

0 comments on commit 284e2bd

Please sign in to comment.