@civicactions/cmsds-open-data-components 3.1.8-alpha.2 → 3.1.8-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1331,7 +1331,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
1331
1331
  ...additionalParams
1332
1332
  };
1333
1333
  const additionalParamsString = Object.keys(params).length ? `&${(0, $hgUW1$qs).stringify(params)}` : "";
1334
- const enabled = enabledParam && id !== null && id != "";
1334
+ const enabled = id && enabledParam ? true : false;
1335
1335
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
1336
1336
  queryKey: [
1337
1337
  "datastore" + id + additionalParamsString