Skip to content

Commit

Permalink
fix: change visconfig types to reflect new getter (#1350)
Browse files Browse the repository at this point in the history
* Fix types for VisualizationConfigImpl

---------

Co-authored-by: Ryan Dunlavy <rdunlavy@google.com>
  • Loading branch information
ryandunlavy and rdunlavy-google authored Aug 14, 2023
1 parent 90f3f5f commit c7648d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/extension-sdk/src/connect/visualization/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface VisualizationConfig {
queryFieldDimensions: Dimension[]
queryFieldTableCalculations: TableCalculation[]
queryFieldPivots: PivotConfig[]
visConfig: RawVisConfig
}

export interface QueryResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class VisualizationConfigImpl implements VisualizationConfig {
this._visConfig = visConfig
}

get visConfig(): RawVisConfig | undefined {
return this._visConfig
get visConfig(): RawVisConfig {
return this._visConfig || {}
}

get queryFieldMeasures(): Measure[] {
Expand Down

0 comments on commit c7648d9

Please sign in to comment.