Commit 7396120a by 放生的三文鱼

未挂载的表头

parent ed0ac113
...@@ -69,9 +69,8 @@ const FC = (props) => { ...@@ -69,9 +69,8 @@ const FC = (props) => {
const [columns, tableData, total] = React.useMemo(() => { const [columns, tableData, total] = React.useMemo(() => {
let [newColumns, newTableData] = [[], []] let [newColumns, newTableData] = [[], []]
for (const element of filterElements??[]) { for (const element of filterElements??[]) {
for (const name of element.names??[]) { const name = element.name
const column = { const column = {
title: name, title: name,
dataIndex: name, dataIndex: name,
...@@ -111,7 +110,6 @@ const FC = (props) => { ...@@ -111,7 +110,6 @@ const FC = (props) => {
newColumns.push(column) newColumns.push(column)
} }
}
if (!loadingFilterElements) { if (!loadingFilterElements) {
for (const item of (data?.data??[])) { for (const item of (data?.data??[])) {
......
...@@ -303,11 +303,11 @@ const AssetTable = (props) => { ...@@ -303,11 +303,11 @@ const AssetTable = (props) => {
}, [timestamp]) }, [timestamp])
useDebounceEffect(() => { useDebounceEffect(() => {
if (reference !== AssetRecycleReference) { if (reference !== AssetRecycleReference&&nodeId) {
getFilterElementsGroupThenGetDataAssets(); getFilterElementsGroupThenGetDataAssets();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeId], { wait: 650 }) }, [keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeId], { wait: 350 })
useEffect(() => { useEffect(() => {
if (reference === AssetRecycleReference) { if (reference === AssetRecycleReference) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment