Skip to content

Commit 7eb33a6

Browse files
Refactor code
1 parent 3cfd70a commit 7eb33a6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

x-pack/platform/packages/shared/kbn-inference-endpoint-ui-common/src/components/inference_flyout_wrapper.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const formDeserializer = (data: InferenceEndpoint): InferenceEndpoint => {
6565
};
6666

6767
// This serializer is used to transform the form data before sending it to the server
68-
export const formSerializer = (formData: InferenceEndpoint): InferenceEndpoint => {
68+
export const formSerializer = (formData: InferenceEndpoint) => {
6969
const providerConfig = formData.config?.providerConfig as
7070
| InferenceEndpoint['config']['providerConfig']
7171
| undefined;
@@ -91,8 +91,6 @@ export const formSerializer = (formData: InferenceEndpoint): InferenceEndpoint =
9191
},
9292
// Temporary solution until the endpoint is updated to no longer require it and to set its own default for this value
9393
num_threads: DEFAULT_NUM_THREADS,
94-
// Remove num_allocations as it cannot be set when adaptive allocations is set.
95-
num_allocations: undefined,
9694
}
9795
: {}),
9896
},

0 commit comments

Comments
 (0)