title: cancel button should refresh the page
body: <p>I have a cancel button it should not update the data into database and it should refresh my page,but in my case page is not refreshing</p>
  <pre><code>&lt;Button onClick={() =&gt; searchDiagnosisCode()}&gt;Cancel&lt;/Button&gt;
   const searchDiagnosisCode = () =&gt; {
  props.setConfirm(true);
  setTimeout(function () {
    props.history.push({
      pathname: '/DiagnosisCodeSearch',
      editPage: true,
    });
  }, 10);
  </code></pre>
  <p>};</p>