LFFE-16 Fixed bug swr in DataTable.jsx
This commit is contained in:
@@ -60,7 +60,7 @@ function DataTable(props) {
|
||||
}).then((response) => response.data).catch(() => {
|
||||
})
|
||||
, {
|
||||
revalidateIfStale: false,
|
||||
revalidateIfStale: true,
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: true,
|
||||
keepPreviousData: true
|
||||
|
||||
@@ -8,7 +8,7 @@ const layoutList = {
|
||||
const Layout = ({layout = {}, children}) => {
|
||||
|
||||
const Component = layoutList[layout?.name] || Fragment
|
||||
const props = layout.props || {}
|
||||
const props = layout?.props || {}
|
||||
|
||||
return (
|
||||
<Component {...props}>
|
||||
|
||||
Reference in New Issue
Block a user