このコミットが含まれているのは:
@@ -35,9 +35,13 @@ const CountsAxes = ({ params, update }: {
|
||||
}
|
||||
const commit = (next: Record<string, string[]>) => {
|
||||
for (const group of ['rows', 'cols'] as const)
|
||||
update (group, encodeCountState (group, next[group].map (field => axes.find (
|
||||
axis => axis.field === field) ?? { field,
|
||||
...(countsFilterFields (definition)[field] === 'datetime' ? { grain: 'month' } : { }) })))
|
||||
{
|
||||
if (next[group].join (' ') === groups[group].join (' ')) continue
|
||||
const selected = next[group].map (field => axes.find (axis => axis.field === field)
|
||||
?? { field, ...(countsFilterFields (definition)[field] === 'datetime'
|
||||
? { grain: 'month' } : { }) })
|
||||
update (group, encodeCountState (group, selected))
|
||||
}
|
||||
}
|
||||
const place = (id: string, target?: 'rows' | 'cols') => {
|
||||
const next = Object.fromEntries (Object.entries (groups).map (([key, ids]) => [
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする