From aa3b15edd95d64c8ca969a8252f7d9371e142a6d Mon Sep 17 00:00:00 2001 From: dobri1408 <50819975+dobri1408@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:18:56 +0300 Subject: [PATCH] Update preview_image.js --- src/middlewares/preview_image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/preview_image.js b/src/middlewares/preview_image.js index 7a00275..7f9be89 100644 --- a/src/middlewares/preview_image.js +++ b/src/middlewares/preview_image.js @@ -4,7 +4,7 @@ import { } from '@plone/volto/constants/ActionTypes'; export const preview_image = (middlewares) => [ - (store) => (next) => async (action) => { + (store) => (next) => (action) => { if (![CREATE_CONTENT, UPDATE_CONTENT].includes(action.type)) { return next(action); }