yazid138 há 3 anos atrás
pai
commit
e3b6bca22f
1 ficheiros alterados com 1 adições e 1 exclusões
  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) => ({