yazid138 3 年之前
父节点
当前提交
e3b6bca22f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) => ({