Fix failing feature tests
parent
028b70203c
commit
cdf49d6300
|
@ -216,13 +216,13 @@ export default function ObjectNodeProperties({panelId, node, treeNodeInfo, nodeD
|
||||||
schema.filterGroups = [gettext('Security')];
|
schema.filterGroups = [gettext('Security')];
|
||||||
}
|
}
|
||||||
// Reset stale counter.
|
// Reset stale counter.
|
||||||
useEffect(()=> {
|
useMemo(()=> {
|
||||||
staleCounter.current = 0;
|
staleCounter.current = 0;
|
||||||
}, [nodeData?._id]);
|
}, [nodeData?._id]);
|
||||||
|
|
||||||
const key = useMemo(()=>{
|
const key = useMemo(()=>{
|
||||||
// If node data is updated increase the counter to show updated data.
|
// If node data is updated increase the counter to show updated data.
|
||||||
if(isStale){
|
if(isStale) {
|
||||||
staleCounter.current += 1;
|
staleCounter.current += 1;
|
||||||
}
|
}
|
||||||
if( actionType != 'properties' || isActive) {
|
if( actionType != 'properties' || isActive) {
|
||||||
|
|
|
@ -73,12 +73,12 @@ function CustomRow(props) {
|
||||||
const rowRef = useRef();
|
const rowRef = useRef();
|
||||||
const dataGridExtras = useContext(DataGridExtrasContext);
|
const dataGridExtras = useContext(DataGridExtrasContext);
|
||||||
|
|
||||||
const rowInfoValue = useMemo({
|
const rowInfoValue = useMemo(()=>({
|
||||||
rowIdx: props.rowIdx,
|
rowIdx: props.rowIdx,
|
||||||
getCellElement: (colIdx)=>{
|
getCellElement: (colIdx)=>{
|
||||||
return rowRef.current?.querySelector(`.rdg-cell[aria-colindex="${colIdx+1}"]`);
|
return rowRef.current?.querySelector(`.rdg-cell[aria-colindex="${colIdx+1}"]`);
|
||||||
}
|
}
|
||||||
}, [props.rowIdx]);
|
}), [props.rowIdx]);
|
||||||
|
|
||||||
if(!props.isRowSelected && props.selectedCellIdx > 0) {
|
if(!props.isRowSelected && props.selectedCellIdx > 0) {
|
||||||
dataGridExtras.onSelectedCellChange?.([props.row, props.viewportColumns?.find(columns => columns.idx === props.selectedCellIdx)]);
|
dataGridExtras.onSelectedCellChange?.([props.row, props.viewportColumns?.find(columns => columns.idx === props.selectedCellIdx)]);
|
||||||
|
|
Loading…
Reference in New Issue