Fix attendance sheet Withdrawn student count
This commit is contained in:
parent
20122427e7
commit
cf6b37b0cf
|
@ -12,7 +12,7 @@ import { MembersDropdown } from './Members.js';
|
||||||
class AttendanceSheet extends React.Component {
|
class AttendanceSheet extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const clazz = this.props.clazz;
|
const clazz = this.props.clazz;
|
||||||
const num = clazz.students.length;
|
const num = clazz.students.filter(x => x.attendance_status !== 'Withdrawn').length;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: '3rem', background: 'white', width: '100%', height: '100%' }}>
|
<div style={{ padding: '3rem', background: 'white', width: '100%', height: '100%' }}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user