ui(admin): fix null value being passed to input
This commit is contained in:
parent
2b8565fd1a
commit
98cb7370f0
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ export interface Server {
|
||||||
disk: number;
|
disk: number;
|
||||||
io: number;
|
io: number;
|
||||||
cpu: number;
|
cpu: number;
|
||||||
threads: string;
|
threads: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
featureLimits: {
|
featureLimits: {
|
||||||
|
|
|
@ -125,7 +125,7 @@ const ServerResourceContainer = () => {
|
||||||
<Field
|
<Field
|
||||||
id={'threads'}
|
id={'threads'}
|
||||||
name={'threads'}
|
name={'threads'}
|
||||||
label={'CPU Pinnings'}
|
label={'CPU Pinning'}
|
||||||
type={'string'}
|
type={'string'}
|
||||||
description={'Advanced: Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: 0, 0-1,3, or 0,1,3,4.'}
|
description={'Advanced: Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: 0, 0-1,3, or 0,1,3,4.'}
|
||||||
/>
|
/>
|
||||||
|
@ -285,7 +285,7 @@ export default () => {
|
||||||
disk: server.limits.disk,
|
disk: server.limits.disk,
|
||||||
io: server.limits.io,
|
io: server.limits.io,
|
||||||
cpu: server.limits.cpu,
|
cpu: server.limits.cpu,
|
||||||
threads: server.limits.threads,
|
threads: server.limits.threads || '',
|
||||||
|
|
||||||
databases: server.featureLimits.databases,
|
databases: server.featureLimits.databases,
|
||||||
allocations: server.featureLimits.allocations,
|
allocations: server.featureLimits.allocations,
|
||||||
|
|
Loading…
Reference in a new issue