Fix linter issues

This commit is contained in:
Kuba Orlik 2024-07-29 20:18:24 +02:00
parent 1417ac75a6
commit 3f09f26a31

View File

@ -105,7 +105,7 @@ export const ComponentPreviewActions = <const>{
arg_path: string[],
element_index: number
): Promise<JDDPageState> => {
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 = <const>{
arg_path: string[],
element_index: number
): Promise<JDDPageState> => {
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) {