- {images.map((image, i) => (
+ {displayImages.map((image, i) => (
)
- } else if (isSmallScreen && (images.length === 2 || images.length === 4)) {
+ } else if (isSmallScreen && (displayImages.length === 2 || displayImages.length === 4)) {
imageContent = (
- {images.map((image, i) => (
+ {displayImages.map((image, i) => (
- {images.map((image, i) => (
+ {displayImages.map((image, i) => (
+
{imageContent}
{index >= 0 &&
createPortal(
e.stopPropagation()}>
({ src: url }))}
plugins={[Zoom]}
open={index >= 0}
diff --git a/src/components/NoteOptions/index.tsx b/src/components/NoteOptions/index.tsx
index 4dd13cb5..3c6e1a87 100644
--- a/src/components/NoteOptions/index.tsx
+++ b/src/components/NoteOptions/index.tsx
@@ -76,7 +76,6 @@ export default function NoteOptions({ event, className }: { event: Event; classN