mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Better switch value
This commit is contained in:
@ -45,9 +45,7 @@ export function convertValueType(value, type) {
|
||||
return value;
|
||||
}
|
||||
|
||||
type = type.trim().toLowerCase();
|
||||
|
||||
switch (type) {
|
||||
switch (type.trim().toLowerCase()) {
|
||||
case 'string':
|
||||
case 'str':
|
||||
return String(value);
|
||||
|
Reference in New Issue
Block a user