mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Fixed same description issue on drafts
This commit is contained in:
parent
8d970f1d1c
commit
92248fd4bc
@ -4,7 +4,7 @@ import { injectIntl } from 'react-intl';
|
||||
import { View, FlatList, Text } from 'react-native';
|
||||
import ScrollableTabView from 'react-native-scrollable-tab-view';
|
||||
import ActionSheet from 'react-native-actionsheet';
|
||||
import { postBodySummary } from '@esteemapp/esteem-render-helpers';
|
||||
import postBodySummary from '@esteemapp/esteem-render-helpers/src/post-body-summary';
|
||||
|
||||
// Utils
|
||||
import { catchDraftImage } from '../../../utils/image';
|
||||
@ -42,6 +42,7 @@ class DraftsScreen extends Component {
|
||||
const tags = item.tags ? item.tags.split(/[ ,]+/) : [];
|
||||
const tag = tags[0] || '';
|
||||
const image = catchDraftImage(item.body);
|
||||
item.last_update = item.created;
|
||||
const summary = postBodySummary(item, 100);
|
||||
const isSchedules = type === 'schedules';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user