Cleanup and update some dependencies
This commit is contained in:
parent
7f8ae7a8f9
commit
2463c3f492
9 changed files with 80 additions and 171 deletions
|
@ -53,8 +53,7 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
|
|||
const [ isLoading, setIsLoading ] = useState(true);
|
||||
const [ showEditModal, setShowEditModal ] = useState(false);
|
||||
|
||||
// @ts-ignore
|
||||
const schedule: Schedule | undefined = ServerContext.useStoreState(st => st.schedules.data.find(s => s.id === state.schedule?.id), isEqual);
|
||||
const schedule = ServerContext.useStoreState(st => st.schedules.data.find(s => s.id === state.schedule?.id), isEqual);
|
||||
const appendSchedule = ServerContext.useStoreActions(actions => actions.schedules.appendSchedule);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Reference in a new issue