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

b774a553f935ec87e64b83190dd0fbd2fb553f4e

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/extensions/caption/index.js+1 -1
@@ -602,7 +602,7 @@ jQuery(async function () {
602602 const modelIds = await response.json();
603603 if (Array.isArray(modelIds) && modelIds.length > 0) {
604604 modelIds.sort().forEach((modelId) => {
605605 if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId && o.dataset.type === api)) {
606606 return;
607607 }
608608 const option = document.createElement('option');