1 Fixed the issue where db connection was getting disconnected for dashboard, if network is slow.

2 Fixed publication collection node properties issue which was missed during react node porting.
3 Removed unwanted variable from theme style sheet.
This commit is contained in:
Pradip Parkale
2022-04-05 13:40:22 +05:30
committed by Akshay Joshi
parent 953a9d7fd1
commit 8f8adcf71b
13 changed files with 30 additions and 24 deletions

View File

@@ -741,6 +741,7 @@ export default function Dashboard({
}
message = gettext('Loading dashboard...');
if (did && !props.dbConnected) return;
if (did) url += sid + '/' + did;
else url += sid;
@@ -771,7 +772,7 @@ export default function Dashboard({
return () => {
setRefresh();
};
}, [nodeData, val, did, preferences, infoMsg, refresh]);
}, [nodeData, val, did, preferences, infoMsg, refresh, props.dbConnected]);
const RefreshButton = () =>{
return(
@@ -874,6 +875,7 @@ Dashboard.propTypes = {
did: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
row: PropTypes.object,
serverConnected: PropTypes.bool,
dbConnected: PropTypes.bool,
};
export function ChartContainer(props) {