From 918e04a45a92e7980b7b9753f888b9cbfd140a98 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Fri, 10 May 2024 14:55:09 -0500 Subject: [PATCH] Fix TypeError: data.__meta is undefined --- src/DebugBar/Resources/debugbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DebugBar/Resources/debugbar.js b/src/DebugBar/Resources/debugbar.js index 9780aaf8..96f86a9e 100644 --- a/src/DebugBar/Resources/debugbar.js +++ b/src/DebugBar/Resources/debugbar.js @@ -934,6 +934,7 @@ if (typeof(PhpDebugBar) == 'undefined') { * @return {String} Dataset's id */ addDataSet: function(data, id, suffix, show) { + if (!data || !data.__meta) return; if (this.isIframe) { window.top.phpdebugbar.addDataSet(data, id, '(iframe)' + (suffix || ''), show); return;