File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export default function Edit() {
92
92
newBlocks = [ ...parsedContentFromTemplate ] ;
93
93
}
94
94
95
- // @ts -ignore
95
+ // @ts -expect-error
96
96
dispatch ( 'core/block-editor' ) . resetBlocks ( newBlocks ) ;
97
97
} ;
98
98
Original file line number Diff line number Diff line change @@ -96,15 +96,15 @@ export default function Edit({
96
96
const handleSelect = ( posts : number [ ] ) => {
97
97
postBlocks . forEach ( ( id : string ) => {
98
98
const postId = posts . shift ( ) ;
99
- // @ts -ignore
99
+ // @ts -expect-error
100
100
dispatch ( 'core/block-editor' ) . updateBlockAttributes ( id , { postId } ) ;
101
101
} ) ;
102
102
} ;
103
103
104
104
useEffect ( ( ) => {
105
105
if ( showNumbers ) {
106
106
postBlocks . forEach ( ( id : string , index : number ) => {
107
- // @ts -ignore
107
+ // @ts -expect-error
108
108
dispatch ( 'core/block-editor' ) . updateBlockAttributes ( id , { number : index + 1 } ) ;
109
109
} ) ;
110
110
}
@@ -124,18 +124,16 @@ export default function Edit({
124
124
< InnerBlocks />
125
125
</ div >
126
126
< InspectorControls >
127
- { /* @ts -ignore */ }
128
127
< PanelBody
129
128
title = { __ ( 'Post Selection' , 'wp-newsletter-builder' ) }
130
129
initialOpen
131
130
>
132
- { /* @ts -ignore */ }
133
131
< PanelRow >
134
132
< MultiplePostPicker
135
133
onUpdate = { handleSelect }
136
134
allowedTypes = { allowedPostTypes }
137
135
params = { { after : cutoff . toISOString ( ) , per_page : 20 } }
138
- // @ts -ignore
136
+ // @ts -expect-error
139
137
searchRender = { PostPickerResult }
140
138
/>
141
139
</ PanelRow >
You can’t perform that action at this time.
0 commit comments