fix secondary sort field for sum case

This commit is contained in:
Stephanie Yang 2021-07-02 16:09:52 -05:00
parent 986f1f1d0f
commit 9c8b272bb0

View file

@ -105,7 +105,7 @@ export const GroupBySort: FC<GroupBySortProps> = ({
<Select
className={css.fieldSelect}
label="Field"
value={sort[0].field ? sort[0].field : ''}
value={sort[1].field ? sort[1].field : ''}
options={fields}
onChange={(value) => onUpdateSumField(false, value)}
error={showErrors ? !sort[1].field : false}