mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:36:44 +00:00
fix(plugin-workflow): workflow collections should not appear in blocks (#2290)
This commit is contained in:
parent
8c904363ad
commit
5562aca456
@ -593,16 +593,10 @@ function Decorator({ params = {}, children }) {
|
||||
dragSort: false,
|
||||
};
|
||||
|
||||
[nodeCollection, workflowCollection, todoCollection].forEach((collection) => {
|
||||
if (!collections.find((item) => item.name === collection.name)) {
|
||||
collections.push(collection);
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<CollectionManagerProvider
|
||||
{...cm}
|
||||
collections={[...collections]}
|
||||
collections={[...collections, nodeCollection, workflowCollection, todoCollection]}
|
||||
>
|
||||
<TableBlockProvider {...blockProps}>{children}</TableBlockProvider>
|
||||
</CollectionManagerProvider>
|
||||
|
Loading…
Reference in New Issue
Block a user