🐛 fix(api): Server and order
This commit is contained in:
@@ -37,7 +37,7 @@ const shadowsocksSchema = z.object({
|
||||
const vmessSchema = z.object({
|
||||
host: z.string(),
|
||||
port: z.number(),
|
||||
enable_tls: z.boolean().nullable(),
|
||||
enable_tls: z.boolean().nullish(),
|
||||
tls_config: z.any().nullable(),
|
||||
network: z.string(),
|
||||
transport: z.any().nullable(),
|
||||
|
||||
@@ -184,9 +184,9 @@ export default function SubscribeForm<T extends Record<string, any>>({
|
||||
<FormControl>
|
||||
<JSONEditor
|
||||
title={t('form.description')}
|
||||
value={field.value}
|
||||
value={field.value && JSON.parse(field.value)}
|
||||
onChange={(value) => {
|
||||
form.setValue(field.name, value);
|
||||
form.setValue(field.name, JSON.stringify(value));
|
||||
}}
|
||||
placeholder={{
|
||||
description: 'description',
|
||||
|
||||
Reference in New Issue
Block a user