Fix race condtion in my_onshow(), MKWS-105
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 6c014f8..b735cf6 100644 (file)
@@ -271,7 +271,8 @@ function team($, teamName) {
                      renderSummary(hit),
                      '</div>');
            if (hit.recid == m_curDetRecId) {
-               html.push(renderDetails(m_curDetRecData));
+               if (m_curDetRecData)
+                   html.push(renderDetails(m_curDetRecData));
            }
        }
        results.html(html.join(''));