Skip to content

Commit f14da86

Browse files
authored
Merge pull request #1846 from sroze/fix-profiler
Fix the profiler using undefined value
2 parents 59e3840 + 3d7b510 commit f14da86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridge/Symfony/Bundle/Resources/views/DataCollector/request.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<tbody>
6161
{% for key, itemOperation in collector.resourceMetadata.itemOperations %}
62-
{{ apiPlatform.operationLine(key, itemOperation, collector.requestAttributes.item_operation_name) }}
62+
{{ apiPlatform.operationLine(key, itemOperation, collector.requestAttributes.item_operation_name|default('')) }}
6363
{% endfor %}
6464
</tbody>
6565
</table>
@@ -78,7 +78,7 @@
7878

7979
<tbody>
8080
{% for key, collectionOperation in collector.resourceMetadata.collectionOperations %}
81-
{{ apiPlatform.operationLine(key, collectionOperation, collector.requestAttributes.collection_operation_name) }}
81+
{{ apiPlatform.operationLine(key, collectionOperation, collector.requestAttributes.collection_operation_name|default('')) }}
8282
{% endfor %}
8383
</tbody>
8484
</table>

0 commit comments

Comments
 (0)