Commit 7396120a by 放生的三文鱼

未挂载的表头

parent ed0ac113
......@@ -69,9 +69,8 @@ const FC = (props) => {
const [columns, tableData, total] = React.useMemo(() => {
let [newColumns, newTableData] = [[], []]
for (const element of filterElements??[]) {
for (const name of element.names??[]) {
for (const element of filterElements??[]) {
const name = element.name
const column = {
title: name,
dataIndex: name,
......@@ -111,7 +110,6 @@ const FC = (props) => {
newColumns.push(column)
}
}
if (!loadingFilterElements) {
for (const item of (data?.data??[])) {
......
......@@ -303,11 +303,11 @@ const AssetTable = (props) => {
}, [timestamp])
useDebounceEffect(() => {
if (reference !== AssetRecycleReference) {
if (reference !== AssetRecycleReference&&nodeId) {
getFilterElementsGroupThenGetDataAssets();
}
//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(() => {
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