From f2fd2c787f1e74e3e0a07261dff24d3bb0ce348f Mon Sep 17 00:00:00 2001 From: Daria Larionova Date: Thu, 14 Nov 2024 15:11:29 +0300 Subject: [PATCH] fix: getPreparedCopyItemOptions prop usage --- src/components/OverlayControls/OverlayControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OverlayControls/OverlayControls.tsx b/src/components/OverlayControls/OverlayControls.tsx index cef6744..86c26b6 100644 --- a/src/components/OverlayControls/OverlayControls.tsx +++ b/src/components/OverlayControls/OverlayControls.tsx @@ -420,7 +420,7 @@ class OverlayControls extends React.Component { this.context.context?.getPreparedCopyItemOptions; if (typeof getPreparedCopyItemOptions === 'function') { - options = this.context.context.getPreparedCopyItemOptions(options); + options = getPreparedCopyItemOptions(options); } try {