diff --git a/ckanext-hdx_package/ckanext/hdx_package/views/dataset.py b/ckanext-hdx_package/ckanext/hdx_package/views/dataset.py index 155281fb6e..e244a3724c 100644 --- a/ckanext-hdx_package/ckanext/hdx_package/views/dataset.py +++ b/ckanext-hdx_package/ckanext/hdx_package/views/dataset.py @@ -208,7 +208,7 @@ def read(id): dataset_preview_disabled_list = [] if _dataset_preview == vd._DATASET_PREVIEW_RESOURCE_ID: for r in view_enabled_resources: - if r.get('dataset_preview_enabled') == 'True': + if r.get('dataset_preview_enabled'): dataset_preview_enabled_list.append(r) else: dataset_preview_disabled_list.append(r)