Skip to content

Commit 7a25fed

Browse files
Merge branch 'develop' into gig-details-ui-fixes
2 parents c84038f + 0ab2138 commit 7a25fed

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ workflows:
289289
filters:
290290
branches:
291291
only:
292-
- gig-details-ui-fixes
292+
- free
293293
# This is beta env for production soft releases
294294
- "build-prod-beta":
295295
context : org-global

src/shared/components/Contentful/Tabs/Tabs.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ export default class TabsItemsLoader extends Component {
5252
const q = getQuery();
5353
const { tabId } = this.props;
5454
const { tabIndex } = this.state;
55-
if (q.tabs && q.tabs[tabId] && Number(q.tabs[tabId]) !== tabIndex) {
56-
this.setState({ tabIndex: Number(q.tabs[tabId]) });
57-
} else {
58-
this.updatePageUrl();
55+
if (q.tracks && q.tracks[tabId] && Number(q.tracks[tabId]) !== tabIndex) {
56+
this.setState({ tabIndex: Number(q.tracks[tabId]) });
5957
}
6058
}
6159

@@ -64,14 +62,16 @@ export default class TabsItemsLoader extends Component {
6462
}
6563

6664
updatePageUrl() {
67-
const q = getQuery();
68-
const { tabId } = this.props;
69-
const { tabIndex } = this.state;
70-
updateQuery({
71-
tabs: {
72-
...q.tabs,
73-
[tabId]: tabIndex || 0,
74-
},
65+
this.setState((state) => {
66+
const q = getQuery();
67+
const { tabId } = this.props;
68+
const { tabIndex } = state;
69+
updateQuery({
70+
tabs: {
71+
...q.tracks,
72+
[tabId]: tabIndex || 0,
73+
},
74+
});
7575
});
7676
}
7777

0 commit comments

Comments
 (0)