Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63c0219

Browse files
committed
Only show "Pretty" tab for valid JSON
1 parent 0d5643b commit 63c0219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
</div>
180180
{% elseif collector.content %}
181181
<div class="sf-tabs">
182-
{% if collector.isJsonRequest %}
182+
{% if collector.isJsonRequest and collector.prettyJsonContent != "null" %}
183183
<div class="tab">
184184
<h3 class="tab-title">Pretty</h3>
185185
<div class="tab-content">

0 commit comments

Comments
 (0)