Skip to content

Sort gigs by create date and CORS fix for test env #4877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shared/containers/Gigs/RecruitCRMJobs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RecruitCRMJobsContainer extends React.Component {
this.state = {
term: '',
page: 0,
sortBy: 'updated_on',
sortBy: 'created_on',
};

this.onSearch = this.onSearch.bind(this);
Expand Down
4 changes: 1 addition & 3 deletions src/shared/services/contentful.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ if (isomorphy.isServerSide()) {
/* eslint-enable global-require */
}

const LOCAL_MODE = Boolean(config.CONTENTFUL.LOCAL_MODE);

// Education Center Taxonomy
const EDU_TAXONOMY_ID = '15caxocitaxyK65K9oSd91';
// The keys for subcategory lists/references
Expand All @@ -37,7 +35,7 @@ const EDU_ARTICLE_TYPES = ['Article', 'Video', 'Forum post'];

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