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

# fixEmptyHeaderItems()

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

> Warning: This API is now obsolete.
> 
> try to avoid using this function and handle empty headers when displaying them
> 

This function will mutate the incoming data view and replace headers with empty name with a fallback string. This is so that we can show "(empty)" or similar strings in the UI.

**Signature:**

```typescript
export declare function fixEmptyHeaderItems(dataView: IDataView, emptyHeaderString: string): void;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataView | [IDataView](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.idataview/index.md) | view to mutate |
| emptyHeaderString | string | value to use for empty strings |

**Returns:**

void
