Remove any
This commit is contained in:
parent
0b9eb4a8d5
commit
9d5f501d2a
|
@ -254,7 +254,10 @@ export class ComponentStore extends BudiStore<ComponentState> {
|
||||||
* @param {object} opts
|
* @param {object} opts
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
enrichEmptySettings(component: Component, opts: any) {
|
enrichEmptySettings(
|
||||||
|
component: Component,
|
||||||
|
opts: { screen?: Screen; parent?: Component; useDefaultValues?: boolean }
|
||||||
|
) {
|
||||||
if (!component?._component) {
|
if (!component?._component) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1339,7 +1342,7 @@ export const componentStore = new ComponentStore()
|
||||||
|
|
||||||
export const selectedComponent = derived(
|
export const selectedComponent = derived(
|
||||||
[componentStore, selectedScreen],
|
[componentStore, selectedScreen],
|
||||||
([$store, $selectedScreen]) => {
|
([$store, $selectedScreen]): Component | null => {
|
||||||
if (
|
if (
|
||||||
$selectedScreen &&
|
$selectedScreen &&
|
||||||
$store.selectedComponentId?.startsWith(`${$selectedScreen._id}-`)
|
$store.selectedComponentId?.startsWith(`${$selectedScreen._id}-`)
|
||||||
|
|
Loading…
Reference in New Issue