Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Aug 9, 2023
1 parent 972c0fc commit f756175
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/util/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
function log(level, args) {
// Only log statements in development mode or if
// throwing an error through console.error
if (level === 'error') {
if (DEBUG || level === 'error') {
window.console[level].apply(window.console, args);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/v2/client/updateAppState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { interactionCodeFlow } from './interactionCodeFlow';
import { FORMS } from "../ion/RemediationConstants";
import transformIdxResponse from '../ion/transformIdxResponse';


export async function updateAppState(appState: AppState, idxResponse: IdxResponse): Promise<void> {
const settings = appState.settings;

Expand Down
3 changes: 1 addition & 2 deletions src/v2/controllers/FormController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ export default Controller.extend({

// Error out when this is not a remediation form. Unexpected Exception.
if (!this.options.appState.hasRemediationObject(formName)) {
const error = `Cannot find http action for "${formName}".`;
this.options.settings.callGlobalError(error);
this.options.settings.callGlobalError(`Cannot find http action for "${formName}".`);
await this.showFormErrors(this.formView.model, 'Cannot find action to proceed.', this.formView.form);
return;
}
Expand Down
3 changes: 2 additions & 1 deletion webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function({
};


if (mode === 'production' || true) {
if (mode === 'production') {
// preset-env must run before preset-typescript https://github.com/babel/babel/issues/12066
babelOptions.presets.unshift('@babel/preset-env');
} else {
Expand Down Expand Up @@ -114,6 +114,7 @@ module.exports = function({
].some(filePathContains);

return shallBeExcluded && !npmRequiresTransform;

},
loader: 'babel-loader',
options: babelOptions
Expand Down

0 comments on commit f756175

Please sign in to comment.