Skip to content

Commit

Permalink
Don't include blank names in get component responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Jul 31, 2024
1 parent 22d932d commit b6d4ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v3/src/data-interactive/handlers/component-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,9 @@ export const diComponentHandler: DIHandler = {
const { component } = resources
if (!component) return componentNotFoundResult

const { cannotClose, content, id, name, _title } = component
const { cannotClose, content, id, name: _name, _title } = component
const v2Id = toV2Id(id)
const name = _name || undefined
const row = appState.document.content?.findRowContainingTile(id)
const freeTileRow = row && isFreeTileRow(row) ? row : undefined
const dimensions = freeTileRow?.getTileDimensions(id)
Expand Down

0 comments on commit b6d4ee1

Please sign in to comment.