MSP-4161 update onAdd props in ReactJsonView and add invalidatesTag in createUpdateConfig
This commit is contained in:
1 parent
4babf5008c
commit
284d00d32b
2 files changed
+2
-2
No files matched your search
@@ -22,7 +22,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({ bufConfig =
|
||||
return (
|
||||
<ReactJsonView
|
||||
theme={ changeTheme ? 'twilight' : ''}
|
||||
onAdd={true}
|
||||
onAdd={({updated_src}: any) => handleEdit(updated_src)}
|
||||
onDelete={({updated_src}: any) => handleEdit(updated_src)}
|
||||
displayDataTypes={false}
|
||||
displayObjectSize={false}
|
||||
|
||||
@@ -56,7 +56,7 @@ const configServiceApi = createApi({
|
||||
}),
|
||||
createUpdateConfig: builder.mutation<ConfigType, ConfigType>({
|
||||
query: (data) => ({ url: apiPaths.createUpdateConfig, data }),
|
||||
invalidatesTags: () => ['configs', 'versions']
|
||||
invalidatesTags: () => ['configs', 'versions', 'config']
|
||||
}),
|
||||
deleteVersion: builder.mutation<void, string>({
|
||||
query: (id) => ({ url: apiPaths.deleteVersion, data: { id } }),
|
||||
|
||||
Reference in new issue
Block a user