Skip to content

Commit

Permalink
Fix js lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Charl1996 committed Jan 22, 2024
1 parent 78982f0 commit 7307fc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corehq/apps/export/static/export/js/customize_export_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hqDefine('export/js/customize_export_new', [
initialPageData,
models,
toggles,
constants,
constants
) {
$(function () {
var customExportView = new models.ExportInstance(
Expand All @@ -35,13 +35,13 @@ hqDefine('export/js/customize_export_new', [

if (toggles.toggleEnabled('SUPPORT_GEO_JSON_EXPORT')) {
const exportFormat = initialPageData.get('export_instance').export_format;
if (exportFormat == constants.EXPORT_FORMATS.GEOJSON) {
if (exportFormat === constants.EXPORT_FORMATS.GEOJSON) {
$("#select-geo-property").show();
}

$('#format-select').change(function () {
const selectedValue = $(this).val();
if (selectedValue == constants.EXPORT_FORMATS.GEOJSON) {
if (selectedValue === constants.EXPORT_FORMATS.GEOJSON) {
$("#select-geo-property").show();
} else {
$("#select-geo-property").hide();
Expand Down

0 comments on commit 7307fc6

Please sign in to comment.