mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 12:47:56 +08:00
Small fix
This commit is contained in:
@@ -803,10 +803,11 @@ class Graph extends React.Component {
|
||||
});
|
||||
|
||||
updateReglAndRender(asyncProps, prevAsyncProps) {
|
||||
const { positions, colors, flags, height, width } = asyncProps;
|
||||
const { positions, colors, flags, height, width, imageUnderlay } =
|
||||
asyncProps;
|
||||
this.cachedAsyncProps = asyncProps;
|
||||
const { pointBuffer, colorBuffer, flagBuffer } = this.state;
|
||||
let needToRenderCanvas = true;
|
||||
let needToRenderCanvas = false;
|
||||
|
||||
console.log("updateReglAndRender");
|
||||
|
||||
@@ -825,6 +826,9 @@ class Graph extends React.Component {
|
||||
flagBuffer({ data: flags, dimension: 1 });
|
||||
needToRenderCanvas = true;
|
||||
}
|
||||
if (imageUnderlay !== prevAsyncProps?.imageUnderlay) {
|
||||
needToRenderCanvas = true;
|
||||
}
|
||||
if (needToRenderCanvas) this.renderCanvas();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user