Remove any

This commit is contained in:
Adria Navarro 2025-01-28 15:50:35 +01:00
parent 0b9eb4a8d5
commit 9d5f501d2a
1 changed files with 5 additions and 2 deletions

View File

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