forked from Alex/Pterodactyl-Panel
ui(admin): fix null value being passed to input
This commit is contained in:
parent
2b8565fd1a
commit
98cb7370f0
@ -21,7 +21,7 @@ export interface Server {
|
||||
disk: number;
|
||||
io: number;
|
||||
cpu: number;
|
||||
threads: string;
|
||||
threads: string | null;
|
||||
}
|
||||
|
||||
featureLimits: {
|
||||
|
@ -125,7 +125,7 @@ const ServerResourceContainer = () => {
|
||||
<Field
|
||||
id={'threads'}
|
||||
name={'threads'}
|
||||
label={'CPU Pinnings'}
|
||||
label={'CPU Pinning'}
|
||||
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.'}
|
||||
/>
|
||||
@ -285,7 +285,7 @@ export default () => {
|
||||
disk: server.limits.disk,
|
||||
io: server.limits.io,
|
||||
cpu: server.limits.cpu,
|
||||
threads: server.limits.threads,
|
||||
threads: server.limits.threads || '',
|
||||
|
||||
databases: server.featureLimits.databases,
|
||||
allocations: server.featureLimits.allocations,
|
||||
|
Loading…
Reference in New Issue
Block a user