mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
refactor(i18n): optimize safeTranslate usage by removing unnecessary await calls
This commit is contained in:
@@ -83,8 +83,8 @@ export function setupModelNameEditing(filePath) {
|
||||
sel.removeAllRanges();
|
||||
sel.addRange(range);
|
||||
|
||||
safeTranslate('modelMetadata.validation.nameTooLong', {}, 'Model name is limited to 100 characters')
|
||||
.then(text => showToast(text, 'warning'));
|
||||
const text = safeTranslate('modelMetadata.validation.nameTooLong', {}, 'Model name is limited to 100 characters');
|
||||
showToast(text, 'warning');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user