mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
fix linting
This commit is contained in:
parent
02642ff1c3
commit
665b1d966f
@ -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)
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { describe, it, expect, vi } from 'vitest'
|
||||
|
||||
import { linkItem } from './itemFunctions'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user