Fix failing feature tests

This commit is contained in:
Aditya Toshniwal
2024-01-30 13:01:57 +05:30
parent 028b70203c
commit cdf49d6300
2 changed files with 4 additions and 4 deletions

View File

@@ -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) {