touchstudy-core 0.1.122 → 0.1.123

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
@@ -20180,8 +20180,9 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
20180
20180
  };
20181
20181
  var _temp3 = _catch(function () {
20182
20182
  function _temp2() {
20183
- html2pdf().from(element).set(options).save();
20184
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
20183
+ return Promise.resolve(html2pdf().from(element).set(options).save()).then(function () {
20184
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
20185
+ });
20185
20186
  }
20186
20187
  var element = contentRef.current;
20187
20188
  var options = {