seeder-st2110-components 1.1.8 → 1.2.0

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.esm.js CHANGED
@@ -2489,7 +2489,7 @@ const NetworkSettingsModal = _ref2 => {
2489
2489
  }
2490
2490
  }
2491
2491
  onClose();
2492
- }, [message, modal, getSysConfig, restart, onClose]);
2492
+ }, [message, modal, getSysConfig, restart, getConfig, sections, onClose]);
2493
2493
  const handleSubmit = useCallback(async () => {
2494
2494
  setSubmitLoading(true);
2495
2495
  try {
@@ -2517,7 +2517,11 @@ const NetworkSettingsModal = _ref2 => {
2517
2517
  ...(st2110Interfaces?.[index]?.id !== undefined && {
2518
2518
  id: st2110Interfaces?.[index]?.id
2519
2519
  }),
2520
- ip_address: item.ip_address,
2520
+ ...(st2110Interfaces?.[index]?.ip !== undefined ? {
2521
+ ip: item.ip_address
2522
+ } : {
2523
+ ip_address: item.ip_address
2524
+ }),
2521
2525
  ...(showNetmask.QSFP ? {
2522
2526
  netmask: item.netmask
2523
2527
  } : {})