LFFE-16 Fixed bug swr in DataTable.jsx

This commit is contained in:
AmirHossein Mahmoodi
2023-11-05 15:59:08 +03:30
parent d23ca1e2e0
commit 07dff0c742
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ function DataTable(props) {
}).then((response) => response.data).catch(() => {
})
, {
revalidateIfStale: false,
revalidateIfStale: true,
revalidateOnFocus: false,
revalidateOnReconnect: true,
keepPreviousData: true

View File

@@ -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}>