fix: add prefer-array-some rule (#5109)
This commit is contained in:
5 files changed
+7
-6
No files matched your search
@@ -143,7 +143,7 @@ const ImagePreviewModalImpl = (
|
||||
if (
|
||||
page
|
||||
.getPreviousSiblings(block)
|
||||
.findLast(
|
||||
.some(
|
||||
(block): block is ImageBlockModel =>
|
||||
block.flavour === 'affine:image'
|
||||
)
|
||||
@@ -160,7 +160,7 @@ const ImagePreviewModalImpl = (
|
||||
} else if (
|
||||
page
|
||||
.getNextSiblings(block)
|
||||
.find(
|
||||
.some(
|
||||
(block): block is ImageBlockModel =>
|
||||
block.flavour === 'affine:image'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user