Create edit dashboard action (#14564)
Closes https://github.com/twentyhq/core-team-issues/issues/1435 Introduced a new pattern to force to register an action or not. Discussed this with @charlesBochet
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { type PageLayoutWithData } from '~/modules/page-layout/types/pageLayoutTypes';
|
||||
|
||||
export const isPageLayoutEmpty = (pageLayout: PageLayoutWithData): boolean => {
|
||||
return (
|
||||
pageLayout.tabs.length === 1 && pageLayout.tabs[0].widgets.length === 0
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user