tideline 1.24.0-rc.2 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -147,7 +147,7 @@ class BasicsChart extends React.Component {
|
|
|
147
147
|
} = this.props.patient;
|
|
148
148
|
|
|
149
149
|
const permissions = this.props.permsOfLoggedInUser;
|
|
150
|
-
const canUpdateSettings = permissions.hasOwnProperty('custodian') || permissions.hasOwnProperty('root');
|
|
150
|
+
const canUpdateSettings = permissions && (permissions.hasOwnProperty('custodian') || permissions.hasOwnProperty('root'));
|
|
151
151
|
const hasSiteChangeSourceSettings = settings && settings.hasOwnProperty('siteChangeSource');
|
|
152
152
|
|
|
153
153
|
chart = SiteChange;
|