@datawheel/bespoke 0.1.15 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5400,14 +5400,14 @@ function SelectorPreview(config) {
5400
5400
  relevantSetter(config.defaultValue);
5401
5401
  dispatch(deleteQueryParam(resource, selectorIdentifier));
5402
5402
  }
5403
- }, [config.options, config.id]);
5403
+ }, [JSON.stringify(config.options), config.id]);
5404
5404
  useEffect(() => {
5405
5405
  if (config.type === SELECTOR_TYPES.MULTI) {
5406
5406
  setMultiValue(parseMultiValue(query[selectorIdentifier], config.defaultValue));
5407
5407
  } else {
5408
5408
  setValue(query[selectorIdentifier] || config.defaultValue);
5409
5409
  }
5410
- }, [config]);
5410
+ }, [config.type, config.defaultValue]);
5411
5411
  const onChangeSingle = (e) => {
5412
5412
  dispatch(setQueryParam(resource, selectorIdentifier, e));
5413
5413
  setValue(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {