Skip to content

Commit 61f2892

Browse files
committed
Version update for 1.3.0 + extra group check in termstore fetching
1 parent e14f2b5 commit 61f2892

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Releases
22

3+
## 1.3.0
4+
5+
**New Controls**
6+
7+
- `TaxonomyPicker` control got added [#22](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/22)
8+
39
## 1.2.5
410

511
**Fixes**

docs/documentation/docs/about/release-notes.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Releases
22

3+
## 1.3.0
4+
5+
**New Controls**
6+
7+
- `TaxonomyPicker` control got added [#22](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/22)
8+
39
## 1.2.5
410

511
**Fixes**
@@ -52,7 +58,7 @@
5258

5359
## 1.1.2
5460

55-
- Fix for WebPartTitle control to inherit color
61+
- Fix for `WebPartTitle` control to inherit color
5662
- Improved telemetry with some object checks
5763

5864
## 1.1.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pnp/spfx-controls-react",
33
"description": "Reusable React controls for SharePoint Framework solutions",
4-
"version": "1.2.5",
4+
"version": "1.3.0",
55
"engines": {
66
"node": ">=0.10.0"
77
},

scripts/sync-changelogs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
const changelog = fs.readFileSync(path.join(__dirname, '../CHANGELOG.md'), 'utf8');
4+
fs.writeFileSync(path.join(__dirname, '../docs/documentation/docs/about/release-notes.md'), changelog, 'utf-8');

src/services/SPTermStorePickerService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class SPTermStorePickerService {
6868
if (this.props.termsetNameOrID) {
6969
const termsetNameOrId = this.props.termsetNameOrID;
7070
termGroups = termGroups.map((group: IGroup) => {
71-
group.TermSets._Child_Items_ = group.TermSets._Child_Items_.filter((termSet: ITermSet) => termSet.Name === termsetNameOrId || termSet.Id.toLowerCase() === `/guid(${termsetNameOrId.toLowerCase()})/`);
71+
group.TermSets._Child_Items_ = group.TermSets._Child_Items_.filter((termSet: ITermSet) => termSet.Name === termsetNameOrId || this._cleanGuid(termSet.Id).toLowerCase() === this._cleanGuid(termsetNameOrId).toLowerCase());
7272
return group;
7373
});
7474
}

0 commit comments

Comments
 (0)