Skip to content

Commit 920465e

Browse files
committed
fix: 清除 initialValues 警告
1 parent 99f5532 commit 920465e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • js/src/pages/admin/Docs/Edit/tabs/Description

js/src/pages/admin/Docs/Edit/tabs/Description/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ const DescriptionComponent = () => {
9191
formItemProps={{
9292
name: ['status'],
9393
label: '發佈',
94-
initialValue: 'publish',
9594
getValueProps: (value) => ({ value: value === 'publish' }),
9695
normalize: (value) => (value ? 'publish' : 'draft'),
9796
hidden: true,
@@ -131,17 +130,20 @@ const DescriptionComponent = () => {
131130
</div>
132131
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6">
133132
<div>
134-
<label htmlFor="short_description" className="pb-2 tw-block">知識庫簡介</label>
135-
<BlockNoteDrawer buttonProps={{
136-
className: 'w-fit'
137-
}} />
133+
<label htmlFor="short_description" className="pb-2 tw-block">
134+
知識庫簡介
135+
</label>
136+
<BlockNoteDrawer
137+
buttonProps={{
138+
className: 'w-fit',
139+
}}
140+
/>
138141
</div>
139142

140143
<div className="xl:col-span-2">
141144
<Item
142145
name={['editor']}
143146
label="模板"
144-
initialValue={''}
145147
help={
146148
watchEditor === 'elementor'
147149
? '請先儲存之後就可以使用 Elementor 編輯'

0 commit comments

Comments
 (0)