Skip to content

Commit 77cd852

Browse files
committed
fix(shared): update entity details page arguments in headline tile
- Replace 'entity' parameter with 'entityId' in EntityDetailsPageArguments - This change affects both topicDetails and sourceDetails routes - Ensures that only the necessary ID is passed instead of the full object
1 parent 2aa1878 commit 77cd852

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/shared/widgets/feed_core/headline_tile_text_only.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class _HeadlineMetadataRow extends StatelessWidget {
151151
context.push(
152152
Routes.topicDetails,
153153
extra: EntityDetailsPageArguments(
154-
entity: headline.topic,
154+
entityId: headline.topic.id,
155155
contentType: ContentType.topic,
156156
),
157157
);
@@ -175,7 +175,7 @@ class _HeadlineMetadataRow extends StatelessWidget {
175175
context.push(
176176
Routes.sourceDetails,
177177
extra: EntityDetailsPageArguments(
178-
entity: headline.source,
178+
entityId: headline.source.id,
179179
contentType: ContentType.source,
180180
),
181181
);

0 commit comments

Comments
 (0)