Skip to content

Commit a289549

Browse files
committed
fixed number of attachments bug on homepage
1 parent 7ac83b5 commit a289549

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/StoriesList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const StoriesList = (props) => {
5959
<div className='flex flex-column'>
6060
<span className='story-meta'>
6161
<i className='eos-icons'>attachment</i>
62-
{story.user_story_comments.length}
62+
{story.Attachment.length}
6363
</span>
6464
<span className='story-meta'>
6565
<i className='eos-icons'>comment</i>

src/services/user_story.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ const userStory = {
6161
product {
6262
Name
6363
}
64+
Attachment {
65+
id
66+
url
67+
}
6468
author {
6569
id
6670
username

0 commit comments

Comments
 (0)