Skip to content

Commit

Permalink
fix(app-shell-odd): fix ODD getConfig (#15489)
Browse files Browse the repository at this point in the history
this fixes app-shell-odd getConfig (to match app-shell) so that make -C app dev-odd works
  • Loading branch information
brenthagen committed Jun 21, 2024
1 parent a647963 commit ea8b0f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app-shell-odd/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ export function getOverrides(path?: string): unknown {

export function getConfig<P extends keyof Config>(path: P): Config[P]
export function getConfig(): Config
export function getConfig(path?: string): any {
const result = path == null ? null : store().get(path)
const over = getOverrides(path)
export function getConfig(path?: any): any {
const result = store().get(path)
const over = getOverrides(path as string | undefined)

if (over != null) {
if (typeof result === 'object' && result != null) {
Expand Down

0 comments on commit ea8b0f4

Please sign in to comment.