[plugin-sdk-issue-4] - remove tsc errors

This commit is contained in:
GuiLeme 2023-09-21 15:50:26 -03:00
parent 9a6e583daa
commit 022d969e53

View File

@ -32,20 +32,26 @@ const PluginProvidedStateContainer = (props: PluginProvidedStateContainerProps)
pluginProvidedStateMap[uuid] = {} as PluginProvidedState;
}
const pluginApi: PluginSdk.PluginApi = PluginSdk.getPluginApi(uuid);
return pluginProvidedStateContainers.map(
(PluginProvidedStateContainerChildComponent: PluginProvidedStateContainerChild, index: number) => (
<PluginProvidedStateContainerChildComponent
{
...{
key: `${uuid}-${index}`,
uuid,
generateItemWithId,
pluginProvidedStateMap,
pluginApi,
}
}
/>
),
return (
<>
{
pluginProvidedStateContainers.map(
(PluginProvidedStateContainerChildComponent: PluginProvidedStateContainerChild, index: number) => (
<PluginProvidedStateContainerChildComponent
{
...{
key: `${uuid}-${index}`,
uuid,
generateItemWithId,
pluginProvidedStateMap,
pluginApi,
}
}
/>
),
)
}
</>
);
};