@datawheel/bespoke 0.1.37 → 0.1.38

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 +1 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9882,14 +9882,13 @@ function BlockEditor({
9882
9882
  const resp = useMemo(() => {
9883
9883
  let apisResponse = null;
9884
9884
  if (status && status.resp) {
9885
- console.log("RESP CHANGED");
9886
9885
  apisResponse = status.resp;
9887
9886
  }
9888
9887
  return apisResponse;
9889
9888
  }, [status]);
9890
9889
  const variables = useInputVariablesFlat(id);
9891
9890
  const { ref, toggle, fullscreen } = useFullscreen();
9892
- const apiList = blockContent && blockContent.api ? blockContent.api.split(apiSeparator) : [];
9891
+ const apiList = blockContent && (blockContent.api || blockContent.api === "") ? blockContent.api.split(apiSeparator) : [];
9893
9892
  const onChangeCode = (logic, locale2) => setBlockContent({ logic }, locale2);
9894
9893
  const onChangeAPI = (changedApi, ix) => {
9895
9894
  const newApiList = [...apiList];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {