compare to quantitativeColumns.length * 4

This commit is contained in:
Dan Marshall 2024-07-08 21:24:09 -07:00
Родитель ad938f7f81
Коммит da721a6b2a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -49,7 +49,7 @@ function _BackgroundImageEditor(_props: Props) {
const xCol = quantitativeColumns.filter(c => c.name === insightColumns.x)[0];
const yCol = quantitativeColumns.filter(c => c.name === insightColumns.y)[0];
let backgroundImageColumnBounds: BackgroundImageColumnBound[];
if (!explorer.imageHolder.backgroundImageColumnBounds.length) {
if (explorer.imageHolder.backgroundImageColumnBounds.length < quantitativeColumns.length * 4) {
backgroundImageColumnBounds = getBackgroundImageColumnBounds(explorer.state.dataContent.columns);
} else {
backgroundImageColumnBounds = SandDance.VegaMorphCharts.util.clone(explorer.imageHolder.backgroundImageColumnBounds);