Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jul 31, 2024
1 parent 0ca90f1 commit b316497
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,11 @@ export function initConfig(specifiedConfig: Config = {}): Config<SignalRef> {

const outputConfig: Config<SignalRef> = omit(mergedConfig, configPropsWithExpr);

outputConfig['background'] = signalRefOrValue(mergedConfig['background']);
outputConfig['lineBreak'] = signalRefOrValue(mergedConfig['lineBreak']);
outputConfig['padding'] = signalRefOrValue(mergedConfig['padding']);
for (const prop of ['background', 'lineBreak', 'padding'] as const) {
if (mergedConfig[prop]) {
(outputConfig as any)[prop] = signalRefOrValue(mergedConfig[prop]);
}
}

for (const markConfigType of mark.MARK_CONFIGS) {
if (mergedConfig[markConfigType]) {
Expand Down

0 comments on commit b316497

Please sign in to comment.