feat(core): adjust admin panel style (#7116)
This commit is contained in:
6 files changed
+59
-29
No files matched your search
@@ -18,7 +18,13 @@ function validateConfigType<K extends keyof FlattenedAppRuntimeConfig>(
|
||||
key: K,
|
||||
value: any
|
||||
) {
|
||||
const want = defaultRuntimeConfig[key].type;
|
||||
const config = defaultRuntimeConfig[key];
|
||||
|
||||
if (!config) {
|
||||
throw new BadRequestException(`Unknown runtime config key '${key}'`);
|
||||
}
|
||||
|
||||
const want = config.type;
|
||||
const get = runtimeConfigType(value);
|
||||
if (get !== want) {
|
||||
throw new BadRequestException(
|
||||
|
||||
Reference in new issue
Block a user