Skip to content

Commit

Permalink
Resolved validation check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunReddy1111 committed Mar 20, 2024
1 parent 27b6766 commit a115b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function DataTableHeaderFooterTemplate({title, multiselectComponent, butt
/>
{modReset &&
<ConfirmButton
buttonText="Set MOD Defaults"
buttonText="Set to MOD Defaults"
headerText={`${title} MOD Default Reset`}
messageText= {`Are you sure? This will reset the local state of the ${title} to the MOD default settings.`}
acceptHandler={setToModDefault}
Expand Down
2 changes: 1 addition & 1 deletion src/main/cliapp/src/service/TableStateService.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export function getModTableState(table, widthsObject, defaultColumnNames) {
export function getModFormFields(table) {
const oktaToken = JSON.parse(localStorage.getItem('okta-token-storage'));
const mod = oktaToken?.accessToken?.claims?.Groups?.filter(group => group.includes("Staff"));
const modFormFields = modTableSettings[mod][table]['selectedFormFields'];
const modFormFields = modTableSettings[mod]?modTableSettings[mod][table]['selectedFormFields']:modTableSettings['Default'][table]['selectedFormFields'];
return modFormFields;
};

Expand Down

0 comments on commit a115b22

Please sign in to comment.