1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 13:00:42 +01:00

Fix TypeError: data.__meta is undefined (#655)

This commit is contained in:
erikn69 2024-05-11 09:57:29 -05:00 committed by GitHub
parent 40d2d7e986
commit 7715ec5136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;