diff --git a/src/back/routes/component-preview/component-preview-actions.ts b/src/back/routes/component-preview/component-preview-actions.ts index fe661e1..a4bad36 100644 --- a/src/back/routes/component-preview/component-preview-actions.ts +++ b/src/back/routes/component-preview/component-preview-actions.ts @@ -105,7 +105,7 @@ export const ComponentPreviewActions = { arg_path: string[], element_index: number ): Promise => { - const array_values = objectPath.get(state, arg_path); + const array_values = objectPath.get(state, arg_path) as unknown[]; const curr = array_values[element_index]; const prev = array_values[element_index - 1]; if (!prev || !curr) { @@ -122,7 +122,7 @@ export const ComponentPreviewActions = { arg_path: string[], element_index: number ): Promise => { - const array_values = objectPath.get(state, arg_path); + const array_values = objectPath.get(state, arg_path) as unknown[]; const curr = array_values[element_index]; const next = array_values[element_index + 1]; if (!next || !curr) {