yazid138 %!s(int64=3) %!d(string=hai) anos
pai
achega
e3b6bca22f
Modificáronse 1 ficheiros con 1 adicións e 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) => ({