From c69b900896231258f872cffad757f0b698739c00 Mon Sep 17 00:00:00 2001 From: Tyler Trebitowski Date: Thu, 6 Feb 2025 09:41:57 -0600 Subject: [PATCH] chore: Lint --- src/utils/array.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/utils/array.ts b/src/utils/array.ts index fcbb74b2..df6184ef 100644 --- a/src/utils/array.ts +++ b/src/utils/array.ts @@ -1,15 +1,21 @@ -import { getDefaultFieldValue } from "./formHelperFunctions"; +import { getDefaultFieldValue } from './formHelperFunctions'; /** * Inserts an element into a list without side effects. */ -function justInsert(list: any, element: any, index: any, field: any = undefined, replace = true) { +function justInsert( + list: any, + element: any, + index: any, + field: any = undefined, + replace = true +) { const newList = [...list]; // Add null values if the index is beyond the current length of the list if (index >= newList.length) { newList.length = index; - const fill_value = field ? getDefaultFieldValue(field) : "" + const fill_value = field ? getDefaultFieldValue(field) : ''; newList.fill(fill_value, list.length, index); }