MSP-4330 update ConfigurationEditorPropsType
This commit is contained in:
1 parent
58c4546531
commit
cd095b3e0b
3 files changed
+6
-6
No files matched your search
@@ -7,7 +7,7 @@ import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/Con
|
||||
import { Context } from '@stores/index.tsx'
|
||||
|
||||
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||
bufConfig = {},
|
||||
bufConfig,
|
||||
setBufConfig,
|
||||
isCurrentConfigLoading
|
||||
}) => {
|
||||
@@ -35,7 +35,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||
enableClipboard={true}
|
||||
iconStyle="square"
|
||||
onEdit={({ updated_src }: any) => handleEdit(updated_src)}
|
||||
src={bufConfig.data}
|
||||
src={bufConfig?.data}
|
||||
sortKeys={true}
|
||||
collapsed={1}
|
||||
/>
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export interface ConfigurationEditorPropsType {
|
||||
jsonSchema?: ResponseSchemaType
|
||||
bufConfig?: ConfigType
|
||||
bufConfig: ConfigType
|
||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||
isCurrentConfigLoading: boolean
|
||||
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
||||
|
||||
@@ -130,7 +130,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
return (
|
||||
<ConfigurationEditorForm
|
||||
submitRef={submitRef}
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
jsonSchema={jsonSchema}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
@@ -140,7 +140,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
case jsonRadio:
|
||||
return (
|
||||
<ConfigurationEditorJson
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
/>
|
||||
@@ -149,7 +149,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
return (
|
||||
<ConfigurationEditorCode
|
||||
setDisableBtn={setDisableBtn}
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user