mol_plot_all 1.2.54 → 1.2.55

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/node.js CHANGED
@@ -2320,11 +2320,22 @@ var $;
2320
2320
  if (!sub)
2321
2321
  return 0;
2322
2322
  let min = 0;
2323
- sub.forEach(view => {
2324
- if (view instanceof $mol_view) {
2325
- min = Math.max(min, view.minimal_width());
2323
+ try {
2324
+ sub.forEach(view => {
2325
+ if (view instanceof $mol_view) {
2326
+ min = Math.max(min, view.minimal_width());
2327
+ }
2328
+ });
2329
+ }
2330
+ catch (error) {
2331
+ if (error instanceof Promise) {
2332
+ $.$mol_atom2.current.subscribe(error);
2326
2333
  }
2327
- });
2334
+ else if ($.$mol_fail_catch(error)) {
2335
+ console.error(error);
2336
+ }
2337
+ return 24;
2338
+ }
2328
2339
  return min;
2329
2340
  }
2330
2341
  maximal_width() {