Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/components/admin/call-taker-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const GREEN = '#6B931B'
* - view field trip list
*/
class CallTakerControls extends Component {
componentWillReceiveProps (nextProps) {
const {session} = nextProps
componentDidUpdate (prevProps) {
const {session} = this.props
// Once session is available, fetch calls.
if (session && !this.props.session) {
if (session && !prevProps.session) {
this.props.fetchCalls()
}
}
Expand Down
Loading