[plugin-sdk-issue-4] - remove tsc errors
This commit is contained in:
parent
9a6e583daa
commit
022d969e53
@ -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,
|
||||
}
|
||||
}
|
||||
/>
|
||||
),
|
||||
)
|
||||
}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user