@luscii-healthtech/web-ui 6.1.1 → 6.1.2

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.
@@ -5021,12 +5021,12 @@ const TextEditor = ({ defaultValue, onValueChange, placeholder, toolbar = [
5021
5021
  [{ list: "ordered" }, { list: "bullet" }],
5022
5022
  ["link", "video"]
5023
5023
  ], formats = ["bold", "italic", "underline", "strike", "list", "link"] }) => {
5024
- const quillRef = React.useRef();
5024
+ const quillRef = React.useRef(null);
5025
5025
  React.useEffect(() => {
5026
5026
  var _a, _b, _c;
5027
5027
  if (quillRef.current) {
5028
5028
  const tooltip = (_c = (_b = (_a = quillRef.current) === null || _a === void 0 ? void 0 : _a.editor) === null || _b === void 0 ? void 0 : _b.theme) === null || _c === void 0 ? void 0 : _c.tooltip;
5029
- if ("save" in tooltip) {
5029
+ if (typeof tooltip === "object" && tooltip !== null && "save" in tooltip) {
5030
5030
  const save = tooltip.save;
5031
5031
  tooltip.save = function() {
5032
5032
  let url = this.textbox.value;