Skip to content

Commit

Permalink
fix: synonyms null check added
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jun 6, 2024
1 parent 4752a2e commit 2792020
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/livewire/molecule-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ class="text-sm font-medium text-gray-500 sm:flex sm:justify-between">
<div class="divide-y divide-gray-200">
<div class="px-4 py-5 sm:px-6">
<h2 id="notes-title" class="text-lg font-medium text-gray-900">Synonyms
@if($molecule->synonyms)
({{ count($molecule->synonyms) }})</h2>
@endif
</div>
<div class="px-4 py-6 sm:px-6">
@if ($molecule->synonyms && count($molecule->synonyms) > 0)
Expand Down

0 comments on commit 2792020

Please sign in to comment.