1
0
Fork 0

chore(shared): Changes for recent core changes

This commit is contained in:
joostdecock 2022-09-25 10:45:52 +02:00
parent f31a158398
commit 31a28d2faa
16 changed files with 56 additions and 58 deletions

View file

@ -3,8 +3,8 @@ import ClearIcon from 'shared/components/icons/clear.js'
import { useTranslation } from 'next-i18next'
const DesignOptionList = props => {
const { t } = useTranslation([`o_${props.design.config.data.name}`])
const { dflt, list, doNotTranslate=false } = props.design.config.options[props.option]
const { t } = useTranslation([`o_${props.design.designConfig.data.name}`])
const { dflt, list, doNotTranslate=false } = props.design.patternConfig.options[props.option]
const val = (typeof props.gist?.options?.[props.option] === 'undefined')
? dflt
: props.gist.options[props.option]
@ -48,7 +48,7 @@ const DesignOptionList = props => {
</span>
{doNotTranslate
? choice
: props.ot(`o_${props.design.config.data.name}:${props.option}.o.${choice}`)
: props.ot(`o_${props.design.designConfig.data.name}:${props.option}.o.${choice}`)
}
</button>
))}