pollination-react-io 1.80.5 → 1.80.6

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/build/index.js CHANGED
@@ -53718,7 +53718,7 @@ var overlayOptions = [
53718
53718
  var SendResults = function (_a) {
53719
53719
  var _b;
53720
53720
  var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions;
53721
- var _c = React.useState(results), currResults = _c[0], setCurrResults = _c[1];
53721
+ var _c = React.useState(), currResults = _c[0], setCurrResults = _c[1];
53722
53722
  var _d = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
53723
53723
  var _e = React.useState(), currOption = _e[0], setCurrOption = _e[1];
53724
53724
  React.useEffect(function () { return setCurrResults(results); }, [results]);
@@ -53729,7 +53729,7 @@ var SendResults = function (_a) {
53729
53729
  var _a;
53730
53730
  if (!currResults)
53731
53731
  return [];
53732
- var res = results;
53732
+ var res = currResults;
53733
53733
  var analysisGeometry = (_a = res === null || res === void 0 ? void 0 : res.geometry) === null || _a === void 0 ? void 0 : _a.filter(function (g) { return g.type === 'AnalysisGeometry'; });
53734
53734
  if (!analysisGeometry || (analysisGeometry === null || analysisGeometry === void 0 ? void 0 : analysisGeometry.length) === 0)
53735
53735
  return [];