Skip to content

Commit 0a5484f

Browse files
committed
Remove excerpt field and set content as default
- Remove excerptField from imports and fields array - Remove unused enforceContentExcerptMutualExclusion import - Content remains in default view fields
1 parent 348148d commit 0a5484f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

build/social-web/feed-stage.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/social-web/routes/feed/stage.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,8 @@ import { addQueryArgs, getQueryArgs } from '@wordpress/url';
1313
import { useSelect } from '@wordpress/data';
1414
import { Page } from '../../components/page';
1515
import { useFeed } from '../../hooks/use-feed';
16-
import {
17-
titleField,
18-
dateField,
19-
excerptField,
20-
metadataField,
21-
contentField,
22-
objectTypeField,
23-
tagField,
24-
} from '../../components/fields';
25-
import { enforceContentExcerptMutualExclusion, normalizeFieldOrder } from './utils';
16+
import { titleField, dateField, metadataField, contentField, objectTypeField, tagField } from '../../components/fields';
17+
import { normalizeFieldOrder } from './utils';
2618
import { STORE_NAME } from '../../store';
2719
import type { SocialWebSelectors } from '../../store';
2820
import type { FeedPost } from '../../types';
@@ -157,7 +149,7 @@ export default function FeedStage( { onSelectItem }: FeedStageProps ) {
157149
} );
158150

159151
const fields: Field< FeedPost >[] = useMemo(
160-
() => [ metadataField, titleField, excerptField, contentField, dateField, objectTypeField, tagField ],
152+
() => [ metadataField, titleField, contentField, dateField, objectTypeField, tagField ],
161153
[]
162154
);
163155

0 commit comments

Comments
 (0)