Fixed same description issue on drafts

This commit is contained in:
Mustafa Buyukcelebi 2019-08-27 00:21:06 +03:00
parent 8d970f1d1c
commit 92248fd4bc

View File

@ -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';