Skip to content

Commit e565f3c

Browse files
few more
1 parent 98ca5b4 commit e565f3c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

components/Block/TestimonialSlider.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ const findHeight = () => {
5151
let tallestLength = 0;
5252
let tallestIndex = 0;
5353
54-
for (const { block_quote_id: { quote } } of unref(block)?.items ?? []) {
54+
/* eslint-disable-next-line unicorn/no-array-for-each */
55+
unref(block)?.items?.forEach((item, index) => {
56+
const { block_quote_id: { quote } } = item;
57+
5558
if (quote.length > tallestLength) {
5659
tallestLength = quote.length;
5760
tallestIndex = index;
5861
}
59-
}
62+
});
6063
6164
activeQuote.value = tallestIndex;
6265

types/schema/blocks/block-directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export interface BlockDirectory {
22
id: string;
3-
collection: 'agency_partners' | 'projects' | 'features';
3+
collection: 'agency_partners' | 'projects' | 'features' | 'templates' | 'extensions';
44
filter: Record<string, unknown> | null;
55
style:
66
| 'none'

0 commit comments

Comments
 (0)