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