fix linting

This commit is contained in:
Anton Tranelis 2025-08-19 16:16:07 +02:00
parent 02642ff1c3
commit 665b1d966f
2 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,7 @@ function useSelectPositionManager(): {
if (result.success && result.data) {
// Find the layer object by ID from server response
const layer = layers.find((l) => l.id === result.data.layer)
const layer = layers.find((l) => l.id === (result.data.layer as unknown as string))
const itemWithLayer = { ...result.data, layer }
updateItem(itemWithLayer)
await linkItem(updatedItem.id)
@ -176,7 +176,7 @@ function useSelectPositionManager(): {
if (result.success && result.data) {
// Find the layer object by ID from server response
const layer = layers.find((l) => l.id === result.data.layer)
const layer = layers.find((l) => l.id === (result.data.layer as unknown as string))
const itemWithLayer = { ...result.data, layer }
updateItem(itemWithLayer)
}
@ -202,7 +202,7 @@ function useSelectPositionManager(): {
if (result.success && result.data) {
// Find the layer object by ID from server response
const layer = layers.find((l) => l.id === result.data.layer)
const layer = layers.find((l) => l.id === (result.data.layer as unknown as string))
const itemWithLayer = { ...result.data, layer }
updateItem(itemWithLayer)
}

View File

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { describe, it, expect, vi } from 'vitest'
import { linkItem } from './itemFunctions'