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.
@@ -53691,7 +53691,7 @@ var overlayOptions = [
53691
53691
  var SendResults = function (_a) {
53692
53692
  var _b;
53693
53693
  var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions;
53694
- var _c = useState(results), currResults = _c[0], setCurrResults = _c[1];
53694
+ var _c = useState(), currResults = _c[0], setCurrResults = _c[1];
53695
53695
  var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
53696
53696
  var _e = useState(), currOption = _e[0], setCurrOption = _e[1];
53697
53697
  useEffect(function () { return setCurrResults(results); }, [results]);
@@ -53702,7 +53702,7 @@ var SendResults = function (_a) {
53702
53702
  var _a;
53703
53703
  if (!currResults)
53704
53704
  return [];
53705
- var res = results;
53705
+ var res = currResults;
53706
53706
  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'; });
53707
53707
  if (!analysisGeometry || (analysisGeometry === null || analysisGeometry === void 0 ? void 0 : analysisGeometry.length) === 0)
53708
53708
  return [];