> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# insightSanitize()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/insight/sanitization.ts

Makes sure the insight does not have any nonsensical data (like totals that no longer make sense, etc.), before it is saved.

**Signature:**

```typescript
export declare function insightSanitize<T extends IInsightDefinition>(insight: T): T;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| insight | T | the insight or insight definition to sanitize |

**Returns:**

T
