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.js
CHANGED
|
@@ -822,7 +822,7 @@ const TreeTitleNode = _ref2 => {
|
|
|
822
822
|
// 删除文件/文件夹
|
|
823
823
|
const renderIconNode = react.useCallback(() => {
|
|
824
824
|
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
825
|
-
className: "
|
|
825
|
+
className: "flex",
|
|
826
826
|
onClick: e => e.stopPropagation(),
|
|
827
827
|
children: [/*#__PURE__*/jsxRuntime.jsx(EditablePopover$1, {
|
|
828
828
|
add: newTitle => handleAdd(nodeData, newTitle),
|
|
@@ -3469,9 +3469,8 @@ const Preset = _ref => {
|
|
|
3469
3469
|
const fetchPresetList = react.useCallback(async () => {
|
|
3470
3470
|
try {
|
|
3471
3471
|
const data = await getPresetList();
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
}
|
|
3472
|
+
const presets = data?.preset_list || data || [];
|
|
3473
|
+
setPresetList(presets);
|
|
3475
3474
|
} catch (error) {
|
|
3476
3475
|
console.error('Failed to fetch preset list:', error);
|
|
3477
3476
|
}
|