seeder-st2110-components 1.3.0 → 1.3.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.
package/dist/index.esm.js CHANGED
@@ -840,7 +840,7 @@ const TreeTitleNode = _ref2 => {
840
840
  className: "iconfont icon-bianji"
841
841
  })
842
842
  }), /*#__PURE__*/jsx(Popconfirm, {
843
- title: "Confirm to delete?",
843
+ title: "Confirm deletion?",
844
844
  onConfirm: () => handleDel(nodeData),
845
845
  okText: "Yes",
846
846
  cancelText: "No",
@@ -3467,9 +3467,8 @@ const Preset = _ref => {
3467
3467
  const fetchPresetList = useCallback(async () => {
3468
3468
  try {
3469
3469
  const data = await getPresetList();
3470
- if (data?.preset_list) {
3471
- setPresetList(data.preset_list);
3472
- }
3470
+ const presets = data?.preset_list || data || [];
3471
+ setPresetList(presets);
3473
3472
  } catch (error) {
3474
3473
  console.error('Failed to fetch preset list:', error);
3475
3474
  }