mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 04:37:40 +01:00
Better switch value
This commit is contained in:
parent
20e5e9eeee
commit
011f785a79
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user