Skip to content

Commit 5253682

Browse files
authored
Merge pull request #4877 from topcoder-platform/gig-work-fix
Sort gigs by create date and CORS fix for test env
2 parents ec4094c + 6d446f3 commit 5253682

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/shared/containers/Gigs/RecruitCRMJobs.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RecruitCRMJobsContainer extends React.Component {
2222
this.state = {
2323
term: '',
2424
page: 0,
25-
sortBy: 'updated_on',
25+
sortBy: 'created_on',
2626
};
2727

2828
this.onSearch = this.onSearch.bind(this);

src/shared/services/contentful.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ if (isomorphy.isServerSide()) {
2121
/* eslint-enable global-require */
2222
}
2323

24-
const LOCAL_MODE = Boolean(config.CONTENTFUL.LOCAL_MODE);
25-
2624
// Education Center Taxonomy
2725
const EDU_TAXONOMY_ID = '15caxocitaxyK65K9oSd91';
2826
// The keys for subcategory lists/references
@@ -37,7 +35,7 @@ const EDU_ARTICLE_TYPES = ['Article', 'Video', 'Forum post'];
3735

3836
/* Holds the base URL of Community App endpoints that proxy HTTP request to
3937
* Contentful APIs. */
40-
const PROXY_ENDPOINT = `${LOCAL_MODE ? '' : config.URL.APP}/api/cdn/public/contentful`;
38+
const PROXY_ENDPOINT = '/api/cdn/public/contentful';
4139
/* At the client-side only, it holds the cached index of published Contentful
4240
* assets and content. Do not use it directly, use getIndex() function below
4341
* instead (it takes care about updating this when necessary). */

0 commit comments

Comments
 (0)