pollination-react-io 1.26.0 → 1.26.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.
@@ -41778,6 +41778,8 @@ var SelectProject = function (_a) {
41778
41778
  if (lodash_isequal(valueRef.current, selProject)) {
41779
41779
  return;
41780
41780
  }
41781
+ if (selProject == null)
41782
+ return;
41781
41783
  if (selProject && selProject.name) {
41782
41784
  comboBoxRef.current.setInputValue(selProject.name);
41783
41785
  }
@@ -41810,6 +41812,7 @@ var SelectAccount = function (_a) {
41810
41812
  var _b;
41811
41813
  var authUser = _a.authUser, client = _a.client, value = _a.value, onChange = _a.onChange;
41812
41814
  var comboBoxRef = useRef();
41815
+ var valueRef = useRef();
41813
41816
  var _c = useState(value), selAccount = _c[0], setSelAccount = _c[1];
41814
41817
  var _d = useState(function () { return authUser ? [authUser] : []; }), accounts = _d[0], setAccounts = _d[1];
41815
41818
  var _e = useState(false), loading = _e[0], setLoading = _e[1];
@@ -41824,7 +41827,7 @@ var SelectAccount = function (_a) {
41824
41827
  }), queryConfig = _g[0], setQueryConfig = _g[1];
41825
41828
  // resetting query
41826
41829
  useEffect(function () {
41827
- if (!authUser)
41830
+ if (authUser == null)
41828
41831
  return;
41829
41832
  // reset total loaded
41830
41833
  totalAccountsRef.current = {
@@ -41860,7 +41863,13 @@ var SelectAccount = function (_a) {
41860
41863
  fetchOrganizations(queryConfig);
41861
41864
  }, [fetchOrganizations, queryConfig]);
41862
41865
  useEffect(function () {
41866
+ if (lodash_isequal(valueRef.current, selAccount)) {
41867
+ return;
41868
+ }
41869
+ if (selAccount == null)
41870
+ return;
41863
41871
  comboBoxRef.current.selectItem(selAccount);
41872
+ valueRef.current = selAccount;
41864
41873
  // comboBoxRef.current.setInputValue( selAccount.name )
41865
41874
  onChange && onChange(selAccount);
41866
41875
  }, [onChange, selAccount]);
@@ -41966,6 +41975,8 @@ var SelectRecipe = function (_a) {
41966
41975
  if (lodash_isequal(valueRef.current, selRecipe)) {
41967
41976
  return;
41968
41977
  }
41978
+ if (selRecipe == null)
41979
+ return;
41969
41980
  if (selRecipe && selRecipe.metadata && selRecipe.metadata.name) {
41970
41981
  comboBoxRef.current.setInputValue(selRecipe.metadata.name);
41971
41982
  }
@@ -46340,6 +46351,8 @@ var SelectStudy = function (_a) {
46340
46351
  if (lodash_isequal(valueRef.current, selStudy)) {
46341
46352
  return;
46342
46353
  }
46354
+ if (selStudy == null)
46355
+ return;
46343
46356
  if (selStudy && selStudy.id) {
46344
46357
  if (selStudy.spec.name) {
46345
46358
  comboBoxRef.current.setInputValue(selStudy.spec.name);