Skip to content

Commit

Permalink
Fixing property name
Browse files Browse the repository at this point in the history
  • Loading branch information
glenfannin-okta committed Jan 25, 2024
1 parent e9cab64 commit 392512b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions playground/mocks/config/responseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,12 @@ const authn = {
'mfa-enroll-sms'
],
'/api/v1/authn': [
'error-authentication-failed',
// 'error-authentication-failed',
// 'unauthenticated',
// 'success-001'
// 'consent-required',
// 'device-code-activate',
// 'mfa-all-factors'
],
'/api/v1/authn/device/activate': [
'terminal-device-activated',
Expand Down Expand Up @@ -1107,6 +1108,4 @@ const smartCardEnrollOrVerify = {

module.exports = {
mocks: idx,
// mocks: ovEnroll,
// mocks: authn,
};
8 changes: 4 additions & 4 deletions src/v3/src/transformer/serverSchema/generateUISchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ const ElementTesters: ElementTester[] = [
];

const toLayout = (uischema: any): VerticalLayout | HorizontalLayout => {
const { style } = uischema;
const { options } = uischema;
const layout: Layout = { type: UISchemaLayoutType.VERTICAL, elements: [] };
if (style) {
layout.options = style;
if (options) {
layout.options = options;
}
switch (style?.direction) {
switch (options?.direction) {
case 'vertical':
return layout as VerticalLayout;
case 'horizontal':
Expand Down

0 comments on commit 392512b

Please sign in to comment.