yazid138 hace 3 años
padre
commit
e3b6bca22f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      components/Extras/calendar.view.js

+ 1 - 1
components/Extras/calendar.view.js

@@ -85,7 +85,7 @@ class Calendar extends Component {
 		return nextState.dataLaporan !== this.state.dataLaporan;
 	}
 
-	getStatus = () => (this.props.user.role.id === 2021 ? statusLLDIKTI : status);
+	getStatus = () => (this.props.user?.role.id === 2021 ? statusLLDIKTI : status);
 
 	getDataEvent = () => {
 		const dataEvent = this.state.dataLaporan.data.map((e) => ({