Skip to content

Commit

Permalink
HDX-9232 wrong resource to be previewed on dataset page and on contri…
Browse files Browse the repository at this point in the history
…bute form
  • Loading branch information
danmihaila committed Oct 10, 2023
1 parent 8bb2e8b commit 437c354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
var i = 'first_resource';
$.each(newOptions, function (index, value) {
var resName = value.get('name') ? value.get('name') : 'Resource ' + (index + 1);
if (value.get('dataset_preview_enabled') === true || value.get('dataset_preview_enabled') === 'True' || value.get('dataset_preview_enabled') === 'true') {
if (value.get('dataset_preview_enabled') === true) {
selectOptions[selectOptions.length] = new Option(resName, index + '', true, true);
i = index + '';
} else {
Expand Down

0 comments on commit 437c354

Please sign in to comment.