refactor(variable-list): rename property from 'p' to 'v' for clarity

The property name 'p' was changed to 'v' to better represent its purpose as a variable container. This improves code readability and maintainability.
pull/22127/head
Mminamiyama 11 months ago
parent 11b537f6f8
commit 4095b8c11c

@ -44,7 +44,7 @@ const VarList: FC<Props> = ({
const id = uuid4() const id = uuid4()
return { return {
id, id,
p: { ...item }, v: { ...item },
} }
}) })
@ -123,7 +123,7 @@ const VarList: FC<Props> = ({
<ReactSortable <ReactSortable
className='space-y-2' className='space-y-2'
list={payloadWithIds} list={payloadWithIds}
setList={(list) => { onChange(list.map(item => item.p)) }} setList={(list) => { onChange(list.map(item => item.v)) }}
handle='.handle' handle='.handle'
ghostClass='opacity-50' ghostClass='opacity-50'
animation={150} animation={150}

Loading…
Cancel
Save