mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 00:01:49 +00:00
fix(frontend): Fix subgrid lock (#1232)
* fix(frontend): Fix subgrid lock * feat(frontend): restore
This commit is contained in:
committed by
Ruben Fiszel
parent
65c9d43419
commit
6277188c1b
@@ -5,6 +5,7 @@
|
||||
import { columnConfiguration, isFixed, toggleFixed } from '../gridUtils'
|
||||
import type { AppEditorContext, GridItem } from '../types'
|
||||
import Component from './component/Component.svelte'
|
||||
import { findGridItem } from './appUtils'
|
||||
|
||||
export let containerHeight: number
|
||||
export let noPadding = false
|
||||
@@ -48,7 +49,7 @@
|
||||
}
|
||||
|
||||
function lock(gridComponent: GridItem) {
|
||||
let fComponent = $app.grid.find((c) => c.id === gridComponent.id)
|
||||
let fComponent = findGridItem($app, gridComponent.data.id)
|
||||
if (fComponent) {
|
||||
fComponent = toggleFixed(fComponent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user