MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / resetCurrentFilterPanelShell

Function resetCurrentFilterPanelShell

search.js:222–231  ·  view source on GitHub ↗

Clears pill list and hides logic toolbar + clear button without removing persistent #current-filter children.

()

Source from the content-addressed store, hash-verified

220 const useProgressiveFullLibrary = noFiltersActive;
221
222 let filteredModels;
223 if (useProgressiveFullLibrary) {
224 filteredModels = await getCombinedFilteredModels({ limit: PROGRESSIVE_INITIAL });
225 if (searchGeneration !== myGeneration) return;
226 if (filteredModels.length === 0) {
227 // Empty library is normal; do not reopen the onboarding welcome dialog here —
228 // that caused a loop (dismiss → search → 0 models → showModal again).
229 const viewLibMsg = document.getElementById('view-library-message');
230 if (viewLibMsg) viewLibMsg.style.display = 'none';
231 updateFilterIndicator(0);
232 await window.renderFiles(filteredModels);
233 isFilteringInProgress = false;
234 return;

Callers 1

updateFilterIndicatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected