Skip to content

Commit 47b4840

Browse files
authored
chore: fix storybook foldering (#1953)
* chore: fix storybook foldering * fix filename * move pipelines to node v14 * adjusting comparisons to compile
1 parent 2c4bf26 commit 47b4840

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [12.x, 14.x, 16.x]
16+
node-version: [14.x, 16.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2

.github/workflows/push-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: needs.version.outputs.latest-version != needs.version.outputs.package-version
4343
strategy:
4444
matrix:
45-
node-version: [12.x]
45+
node-version: [14.x]
4646

4747
environment:
4848
name: release
@@ -80,7 +80,7 @@ jobs:
8080

8181
strategy:
8282
matrix:
83-
node-version: [12.x]
83+
node-version: [14.x]
8484

8585
steps:
8686
- uses: actions/checkout@v2

.github/workflows/storybook copy.yml renamed to .github/workflows/storybook-v3.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,5 @@ jobs:
3636
with:
3737
branch: gh-pages
3838
folder: storybook-static
39-
target-folder: fluentui
40-
clean-exclude: |
41-
pr
42-
next
39+
target-folder: next/v3
4340
token: ${{ secrets.GITHUB_TOKEN }}

packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,11 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
10681068
} catch (_) {}
10691069
} else {
10701070
let groups = (await findGroups(graph, '', this.showMax, this.groupType, this._groupFilters)) || [];
1071+
// tslint:disable: no-string-literal
10711072
if (groups.length > 0 && groups[0]['value']) {
10721073
groups = groups[0]['value'];
10731074
}
1075+
// tslint:enable: no-string-literal
10741076
people = groups;
10751077
}
10761078
}
@@ -1222,7 +1224,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
12221224
*/
12231225
private async getGroupsForGroupIds(graph: IGraph, people: IDynamicPerson[]) {
12241226
const groups = await getGroupsForGroupIds(graph, this.groupIds, this.groupFilters);
1225-
for (let group of groups as IDynamicPerson[]) {
1227+
for (const group of groups as IDynamicPerson[]) {
12261228
people = people.concat(group);
12271229
}
12281230
people = people.filter(person => person);
@@ -1526,7 +1528,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
15261528
if (isCmdOrCtrlKey && event.code === 'ArrowLeft') {
15271529
this._currentHighlightedUserPos =
15281530
(this._currentHighlightedUserPos - 1 + selectedPeople.length) % selectedPeople.length;
1529-
if (this._currentHighlightedUserPos >= 0 && this._currentHighlightedUserPos !== NaN) {
1531+
if (this._currentHighlightedUserPos >= 0 && !Number.isNaN(this._currentHighlightedUserPos)) {
15301532
this._highlightedUsers.push(selectedPeople[this._currentHighlightedUserPos]);
15311533
} else {
15321534
this._currentHighlightedUserPos = 0;

packages/mgt-components/src/graph/graph.presence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function getUsersPresenceByPeople(graph: IGraph, people?: IDynamicP
8686
}
8787

8888
for (const person of people) {
89-
if (person !== '' && person.id) {
89+
if (person?.id) {
9090
const id = person.id;
9191
peoplePresence[id] = null;
9292
let presence: CachePresence;

0 commit comments

Comments
 (0)