fix: not good news tag return on join us page
This commit is contained in:
parent
149c0dc8b0
commit
ea6d85dd99
1 changed files with 1 additions and 2 deletions
|
|
@ -21,11 +21,10 @@ class NewsNextEventComponent extends Component
|
|||
$newsCategory = NewsCategory::getModelsCached()
|
||||
->filter(fn($category) => $category->getTranslation('slug', 'fr') === "actualites")
|
||||
->first();
|
||||
|
||||
/** @var \App\Models\NewsTag|null $eventTag */
|
||||
$eventTag = NewsTag::getTagsByCategoryInCurrentLocale($newsCategory->slug)
|
||||
->filter(
|
||||
fn(\Illuminate\Database\Eloquent\Model $tag) => $tag->getTranslation('slug', 'fr') === "evenement"
|
||||
fn(\Illuminate\Database\Eloquent\Model $tag) => $tag->getTranslation('slug', 'fr') === "actualites-rh"
|
||||
)
|
||||
->first();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue