Skip to content

Sb employee update fix#135

Open
sbagg wants to merge 2 commits into
sandboxfrom
sb-employeeUpdate-fix
Open

Sb employee update fix#135
sbagg wants to merge 2 commits into
sandboxfrom
sb-employeeUpdate-fix

Conversation

@sbagg

@sbagg sbagg commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Issue #119

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Issue #119 by removing a full-page hard reload when returning from the employee update flow back to the search view, preserving expected SPA behavior.

Changes:

  • Removed window.location.reload() from the update tool reset flow.
  • Updated reset() to navigate back to the search subpage via internal state (this.page = 'employee-select').
  • Updated reset() JSDoc to reflect the new SPA navigation behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 153 to 157
this.resetDepartmentChecks();

window.location.reload();

this.page = 'employee-select';

this.requestUpdate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants