@local-civics/hub-ui 0.1.72 → 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.mjs CHANGED
@@ -3840,7 +3840,9 @@ const FileUploadQuestion = (props) => {
3840
3840
  }
3841
3841
  }
3842
3842
  };
3843
- reader.readAsDataURL(file);
3843
+ if (file) {
3844
+ reader.readAsDataURL(file);
3845
+ }
3844
3846
  };
3845
3847
  React__default.useEffect(() => {
3846
3848
  setImageURL(response);
@@ -5164,7 +5166,9 @@ const SettingsCard = (props) => {
5164
5166
  onSave();
5165
5167
  }
5166
5168
  };
5167
- reader.readAsDataURL(file);
5169
+ if (file) {
5170
+ reader.readAsDataURL(file);
5171
+ }
5168
5172
  setFocus("");
5169
5173
  };
5170
5174
  return /* @__PURE__ */ React__default.createElement(Modal, { isLoading: props.isLoading, visible: props.visible, onClose: props.onClose }, /* @__PURE__ */ React__default.createElement("div", { className: "grid grid-cols-1 gap-2 md:w-[30rem]" }, /* @__PURE__ */ React__default.createElement("p", { className: "text-sm font-semibold text-slate-500 mb-2 px-6" }, "Settings"), /* @__PURE__ */ React__default.createElement("div", { className: "grid grid-cols-1 pb-4 px-6 gap-6" }, /* @__PURE__ */ React__default.createElement("div", { className: "flex items-center space-x-6" }, /* @__PURE__ */ React__default.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React__default.createElement(