MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / getFirstAvailableImportListKey

Function getFirstAvailableImportListKey

Script/FastDork.js:774–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772 return false;
773 }
774 function getFirstAvailableImportListKey() {
775 const options = Array.from(UI.listTab2?.options || []).filter(
776 (option) => option && !option.disabled && option.value && option.value !== "0"
777 );
778 const resultListOption = options.find((option) =>
779 option.value.startsWith(CONSTANTS.LIST_PREFIX_RESULT)
780 );
781 return resultListOption?.value || options[0]?.value || null;
782 }
783 async function getPreferredImportListKey(domainKey = null) {
784 if (!UI.listTab2) return null;
785

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected