Imvedansh commented on code in PR #10760:
URL: https://github.com/apache/cloudstack/pull/10760#discussion_r2069263777
##########
ui/src/config/section/account.js:
##########
@@ -225,11 +225,10 @@ export default {
message: 'message.delete.account',
dataView: true,
disabled: (record, store) => {
- return record.id !== 'undefined' && store.userInfo.accountid ===
record.id
+ return (record.id !== 'undefined' && store.userInfo.accountid ===
record.id)
Review Comment:
Indeed, simplifying it to store.userInfo.accountid === record?.id makes it
cleaner and more accurate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]