seeder-st2110-components 1.2.8 → 1.3.1
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 +3 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -820,7 +820,7 @@ const TreeTitleNode = _ref2 => {
|
|
|
820
820
|
// 删除文件/文件夹
|
|
821
821
|
const renderIconNode = useCallback(() => {
|
|
822
822
|
return /*#__PURE__*/jsxs("span", {
|
|
823
|
-
className: "
|
|
823
|
+
className: "flex",
|
|
824
824
|
onClick: e => e.stopPropagation(),
|
|
825
825
|
children: [/*#__PURE__*/jsx(EditablePopover$1, {
|
|
826
826
|
add: newTitle => handleAdd(nodeData, newTitle),
|
|
@@ -3467,9 +3467,8 @@ const Preset = _ref => {
|
|
|
3467
3467
|
const fetchPresetList = useCallback(async () => {
|
|
3468
3468
|
try {
|
|
3469
3469
|
const data = await getPresetList();
|
|
3470
|
-
|
|
3471
|
-
|
|
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
|
}
|