Caption: allow duplicate model ids into the list from different sources
| @@ -602,7 +602,7 @@ jQuery(async function () { | ||
| 602 | 602 | const modelIds = await response.json(); |
| 603 | 603 | if (Array.isArray(modelIds) && modelIds.length > 0) { |
| 604 | 604 | modelIds.sort().forEach((modelId) => { |
| 605 | 605 | if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId && o.dataset.type === api)) { |
| 606 | 606 | return; |
| 607 | 607 | } |
| 608 | 608 | const option = document.createElement('option'); |