Commit 11d826a4 authored by PDuarte's avatar PDuarte

clean editor

parent f6fb01d3
// ** React Imports
import { Link } from 'react-router-dom'
import { cleanasset } from '../store/actions'
import { cleanseason } from '../store/actions'
import { store } from '@store/storeConfig/store'
// ** Custom Components
......@@ -228,7 +228,7 @@ export const serverSideColumns = [
<Link
to={`${moduleSettings.baseURL}/edit/${row.id}`}
className='user-name text-truncate mb-0'
onClick={() => store.dispatch(cleanasset(row.id))}
onClick={() => store.dispatch(cleanseason(row.id))}
>
<span className='font-weight-bold'>{row.title}</span>
</Link>
......
......@@ -76,6 +76,14 @@ export const getData_seasons = params => {
.catch(err => console.log(err))
}
}
export const cleanseason = id => {
return async dispatch => {
dispatch({
type: 'GET_SEASON',
data: null
})
}
}
export const addseason = params => {
return (dispatch, getState) => {
......
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