Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Job Quest
jobquest-web
Commits
51393adf
Commit
51393adf
authored
4 years ago
by
Eduardo Lima Dornelles
Browse files
Options
Download
Plain Diff
Merge branch 'fix/anonymous-access' into 'dev'
fixed api call with anonymous user See merge request
!38
parents
0d371462
bdddd948
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/containers/VacancyList/index.js
+4
-3
src/containers/VacancyList/index.js
with
4 additions
and
3 deletions
+4
-3
src/containers/VacancyList/index.js
View file @
51393adf
...
...
@@ -42,9 +42,10 @@ export default () => {
useEffect
(()
=>
{
const
getVacanciesList
=
async
()
=>
{
const
{
data
:
response
}
=
authenticatedUser
?
await
VacancyService
.
listVacancies
()
:
await
VacancyService
.
listPublicVacancies
();
const
{
data
:
response
}
=
authenticatedUser
.
userData
.
tipo_usuario
===
"
anonimo
"
?
await
VacancyService
.
listPublicVacancies
()
:
await
VacancyService
.
listVacancies
();
setVacanciesFullList
(
response
.
data
);
setVacancies
(
response
.
data
);
handleLoading
(
false
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help