Files
twenty/packages/twenty-front/src/modules/page-layout/graphql/mutations/resetPageLayoutWidgetToDefault.ts
T
Weiko a2188cb0eb Reset Fields widget implementation (#19283)
## Context
This PR implements the first steps for overridable entities resets.

<img width="1277" height="568" alt="Screenshot 2026-04-02 at 18 58 04"
src="https://github.com/user-attachments/assets/4c7f93b1-c453-4905-a919-cd6af11e0e16"
/>
2026-04-07 09:34:44 +00:00

13 lines
384 B
TypeScript

import { gql } from '@apollo/client';
import { PAGE_LAYOUT_WIDGET_FRAGMENT } from '@/page-layout/graphql/fragments/pageLayoutWidgetFragment';
export const RESET_PAGE_LAYOUT_WIDGET_TO_DEFAULT = gql`
${PAGE_LAYOUT_WIDGET_FRAGMENT}
mutation ResetPageLayoutWidgetToDefault($id: String!) {
resetPageLayoutWidgetToDefault(id: $id) {
...PageLayoutWidgetFragment
}
}
`;