Skip to content

Commit

Permalink
hotfix(ads): correct ads-engine data access
Browse files Browse the repository at this point in the history
[1] ────
Fix for the correct data access for the 'ads' widget component. This was altered as the data coming from backend was adjusted for a new structrue, with the intriduction of the cache logic for the articles section.
  • Loading branch information
migbash committed May 23, 2024
1 parent 4089bbe commit 8e29cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@
class:light-mode={theme == "Light"}
>
<WidgetAdEngine
authorId={$page.data.dataArticle?.author_id}
authorArticleTagIds={$page.data.dataArticle?.tags}
authorId={$page.data.dataArticle?.author?.id}
authorArticleTagIds={$page.data.dataArticle?.article?.tags}
isDarkTheme={theme == "Dark"}
/>

Expand Down

0 comments on commit 8e29cf9

Please sign in to comment.