Skip to content

Commit

Permalink
Fix mods display condition (#280)
Browse files Browse the repository at this point in the history
This will:
- title
  • Loading branch information
jskowronski39 authored Aug 18, 2023
2 parents 2f42171 + f805c8c commit 5ee2cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{# @var mod \App\Entity\Mod\SteamWorkshopMod #}
{% for mod in optionalMods %}
{% if mod.status is not null and not mod.status.is(constant('App\\Entity\\Mod\\Enum\\ModStatusEnum::DISABLED')) %}
{% if mod.status is null or not mod.status.is(constant('App\\Entity\\Mod\\Enum\\ModStatusEnum::DISABLED')) %}
<tr data-row-action-checkbox>
<th scope="row">{{ rowNo }}</th>
<td>{{ tableMacro.row_mod_status_icon(mod) }}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{# @var mod \App\Entity\Mod\SteamWorkshopMod #}
{% for mod in requiredMods %}
{% if mod.status is not null and not mod.status.is(constant('App\\Entity\\Mod\\Enum\\ModStatusEnum::DISABLED')) %}
{% if mod.status is null or not mod.status.is(constant('App\\Entity\\Mod\\Enum\\ModStatusEnum::DISABLED')) %}
<tr>
<th scope="row">{{ rowNo }}</th>
<td>{{ tableMacro.row_mod_status_icon(mod) }}</td>
Expand Down

0 comments on commit 5ee2cfe

Please sign in to comment.