[object Object]

← back to Commercialrealestate

CRCP listings: self-heal the blank-grid bug — clear any persisted nav-agent removed/collapsed state on load so the records grid can never stay hidden (root cause of the disappearing data)

926630ae512d4ab0640722ac371ceecd1269ca2a · 2026-08-17 18:08:14 -0700 · steve

Files touched

Diff

commit 926630ae512d4ab0640722ac371ceecd1269ca2a
Author: steve <steve@designerwallcoverings.com>
Date:   Mon Aug 17 18:08:14 2026 -0700

    CRCP listings: self-heal the blank-grid bug — clear any persisted nav-agent removed/collapsed state on load so the records grid can never stay hidden (root cause of the disappearing data)
---
 public/mls.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/public/mls.html b/public/mls.html
index 735bc52..88b97d0 100644
--- a/public/mls.html
+++ b/public/mls.html
@@ -2,6 +2,10 @@
 <html lang="en">
 <head>
 <script>(function(){try{var t=localStorage.getItem('crcp-theme2');document.documentElement.setAttribute('data-theme',t==='dark'?'dark':'light');}catch(e){document.documentElement.setAttribute('data-theme','light');}})();</script>
+<!-- Self-heal: the Nav Agent grid controls can persist a "removed"/"collapsed" state that hides the
+     WHOLE records grid with no obvious way back (this is how the listings went blank). The main data
+     grid should never stay removed/collapsed across loads, so clear that state before nav-agent runs. -->
+<script>(function(){try{for(var i=localStorage.length-1;i>=0;i--){var k=localStorage.key(i);if(k&&k.indexOf('navagent:')===0){var v=localStorage.getItem(k);if(v&&(v.indexOf('"removed":true')>=0||v.indexOf('"collapsed":true')>=0)){localStorage.removeItem(k);}}}}catch(e){}})();</script>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3' fill='%230e1116'/%3E%3Ctext x='8' y='12' font-size='10' text-anchor='middle' fill='%233fb950'%3EMLS%3C/text%3E%3C/svg%3E">

← 7e0658e auto-data-snapshot: 2026-08-17T18:01:33 (8 data files) — scr  ·  back to Commercialrealestate  ·  mls.html: fix "data flashes then blank body" — kill boot() l 58d7a29 →