Caption: allow duplicate model ids into the list from different sources

This commit is contained in:
Cohee
2026-01-03 00:44:11 +02:00
parent 0c8d74da02
commit b774a553f9
+1 -1
View File
@@ -602,7 +602,7 @@ jQuery(async function () {
const modelIds = await response.json();
if (Array.isArray(modelIds) && modelIds.length > 0) {
modelIds.sort().forEach((modelId) => {
if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId)) {
if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId && o.dataset.type === api)) {
return;
}
const option = document.createElement('option');