chore: fix

Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-01-10 13:45:02 +01:00
parent cacde27e15
commit 5d8250cbd3
3 changed files with 3 additions and 6 deletions
+1
View File
@@ -58,6 +58,7 @@
"@rjsf/core": "^3.2.1",
"@rjsf/core-v5": "npm:@rjsf/core@^5.0.0-beta.14",
"@rjsf/material-ui": "^3.2.1",
"@rjsf/utils": "^5.0.0-beta.14",
"@uiw/react-codemirror": "^4.9.3",
"classnames": "^2.2.6",
"git-url-parse": "^13.0.0",
@@ -30,7 +30,6 @@ import {
useApi,
} from '@backstage/core-plugin-api';
import { FormProps, IChangeEvent, withTheme } from '@rjsf/core';
import { UiSchema } from '@rjsf/utils';
import { Theme as MuiTheme } from '@rjsf/material-ui';
import React, { ComponentType, useState } from 'react';
import { transformSchemaToProps } from './schema';
@@ -68,11 +67,7 @@ export type MultistepJsonFormProps = {
ReviewStepComponent?: ComponentType<ReviewStepProps>;
};
export function getSchemasFromSteps(steps: Step[]): {
uiSchema: UiSchema;
mergedSchema: JsonObject;
schema: JsonObject;
}[] {
export function getSchemasFromSteps(steps: Step[]) {
return steps.map(({ schema }) => ({
mergedSchema: schema,
...extractSchemaFromStep(schema),
+1
View File
@@ -7532,6 +7532,7 @@ __metadata:
"@rjsf/core": ^3.2.1
"@rjsf/core-v5": "npm:@rjsf/core@^5.0.0-beta.14"
"@rjsf/material-ui": ^3.2.1
"@rjsf/utils": ^5.0.0-beta.14
"@testing-library/jest-dom": ^5.10.1
"@testing-library/react": ^12.1.3
"@testing-library/react-hooks": ^8.0.0