From ee18d7fe5ff433d1815e7861b727d333900093ce Mon Sep 17 00:00:00 2001
From: Roosted7 <thomasroos@live.nl>
Date: Tue, 1 May 2018 16:37:21 +0200
Subject: [PATCH] Fix exam unable to change from other pages than exam bug

---
 client/views/Exam.jsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/views/Exam.jsx b/client/views/Exam.jsx
index a85f415c0..c7842e9ab 100644
--- a/client/views/Exam.jsx
+++ b/client/views/Exam.jsx
@@ -83,6 +83,7 @@ class Exams extends React.Component {
 
     componentDidMount = () => {
         this.pdfUpdater = setInterval(this.updatePDFs, 1000)
+        if (this.props.urlID !== this.props.exam.id) this.props.updateExam(this.props.urlID)
         if (this.props.exam.id) this.updatePDFs()
     }
 
-- 
GitLab