Skip to content

Commit c212123

Browse files
committed
code review feedback
1 parent 46451a6 commit c212123

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

blocks/email-settings/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function Edit() {
9292
newBlocks = [...parsedContentFromTemplate];
9393
}
9494

95-
// @ts-ignore
95+
// @ts-expect-error
9696
dispatch('core/block-editor').resetBlocks(newBlocks);
9797
};
9898

blocks/section/edit.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ export default function Edit({
9696
const handleSelect = (posts: number[]) => {
9797
postBlocks.forEach((id: string) => {
9898
const postId = posts.shift();
99-
// @ts-ignore
99+
// @ts-expect-error
100100
dispatch('core/block-editor').updateBlockAttributes(id, { postId });
101101
});
102102
};
103103

104104
useEffect(() => {
105105
if (showNumbers) {
106106
postBlocks.forEach((id: string, index: number) => {
107-
// @ts-ignore
107+
// @ts-expect-error
108108
dispatch('core/block-editor').updateBlockAttributes(id, { number: index + 1 });
109109
});
110110
}
@@ -124,18 +124,16 @@ export default function Edit({
124124
<InnerBlocks />
125125
</div>
126126
<InspectorControls>
127-
{ /* @ts-ignore */}
128127
<PanelBody
129128
title={__('Post Selection', 'wp-newsletter-builder')}
130129
initialOpen
131130
>
132-
{ /* @ts-ignore */}
133131
<PanelRow>
134132
<MultiplePostPicker
135133
onUpdate={handleSelect}
136134
allowedTypes={allowedPostTypes}
137135
params={{ after: cutoff.toISOString(), per_page: 20 }}
138-
// @ts-ignore
136+
// @ts-expect-error
139137
searchRender={PostPickerResult}
140138
/>
141139
</PanelRow>

0 commit comments

Comments
 (0)