Skip to content

Commit e07da35

Browse files
authored
Fix error adding location (#286)
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent c10a857 commit e07da35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gitjobs-server/static/js/common/search-location.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class SearchLocation extends LitWrapper {
216216
* @private
217217
*/
218218
async _selectLocation(location) {
219-
this.locationId = location.locationId;
219+
this.locationId = location.location_id;
220220
this.city = location.city;
221221
this.state = location.state;
222222
this.country = location.country;
@@ -339,7 +339,7 @@ export class SearchLocation extends LitWrapper {
339339
? html`<input
340340
type="hidden"
341341
form=${this.form || nothing}
342-
name="location[locationId]"
342+
name="location[location_id]"
343343
.value=${this.locationId}
344344
?required=${this.required}
345345
/>

gitjobs-server/templates/dashboard/dashboard_base_moderator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
}
8888

8989
const backdropMenu = document.getElementById('drawer-backdrop');
90-
if (backadropMenu) {
90+
if (backdropMenu) {
9191
backdropMenu.addEventListener('click', closeNavigationDrawer);
9292
}
9393
</script>

0 commit comments

Comments
 (0)