Fix linter issues
This commit is contained in:
parent
1417ac75a6
commit
3f09f26a31
@ -105,7 +105,7 @@ export const ComponentPreviewActions = <const>{
|
|||||||
arg_path: string[],
|
arg_path: string[],
|
||||||
element_index: number
|
element_index: number
|
||||||
): Promise<JDDPageState> => {
|
): 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 curr = array_values[element_index];
|
||||||
const prev = array_values[element_index - 1];
|
const prev = array_values[element_index - 1];
|
||||||
if (!prev || !curr) {
|
if (!prev || !curr) {
|
||||||
@ -122,7 +122,7 @@ export const ComponentPreviewActions = <const>{
|
|||||||
arg_path: string[],
|
arg_path: string[],
|
||||||
element_index: number
|
element_index: number
|
||||||
): Promise<JDDPageState> => {
|
): 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 curr = array_values[element_index];
|
||||||
const next = array_values[element_index + 1];
|
const next = array_values[element_index + 1];
|
||||||
if (!next || !curr) {
|
if (!next || !curr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user