@local-civics/hub-ui 0.1.73 → 0.1.74

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/index.js CHANGED
@@ -3860,7 +3860,9 @@ const FileUploadQuestion = (props) => {
3860
3860
  }
3861
3861
  }
3862
3862
  };
3863
- reader.readAsDataURL(file);
3863
+ if (file) {
3864
+ reader.readAsDataURL(file);
3865
+ }
3864
3866
  };
3865
3867
  React.useEffect(() => {
3866
3868
  setImageURL(response);
@@ -5184,7 +5186,9 @@ const SettingsCard = (props) => {
5184
5186
  onSave();
5185
5187
  }
5186
5188
  };
5187
- reader.readAsDataURL(file);
5189
+ if (file) {
5190
+ reader.readAsDataURL(file);
5191
+ }
5188
5192
  setFocus("");
5189
5193
  };
5190
5194
  return /* @__PURE__ */ React.createElement(Modal, { isLoading: props.isLoading, visible: props.visible, onClose: props.onClose }, /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-1 gap-2 md:w-[30rem]" }, /* @__PURE__ */ React.createElement("p", { className: "text-sm font-semibold text-slate-500 mb-2 px-6" }, "Settings"), /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-1 pb-4 px-6 gap-6" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center space-x-6" }, /* @__PURE__ */ React.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React.createElement(