-
Notifications
You must be signed in to change notification settings - Fork 127
Fixed: Session Detail #4786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: Session Detail #4786
Conversation
if (resource) { | ||
title = `${resource}: ${title}` | ||
} | ||
|
||
return title | ||
}, | ||
resolveRoute() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main issue is that export default {};
should be removed because it's not needed anymore. This line makes sense before using curly braces { }
.
Additionally, there might also be an issue with the usage of function arguments like cellValue
, and their types. It'd be good to ensure all necessary data types are used instead.
In terms of optimization, it looks fine for now. No further changes required right now based on provided text. However, considering the code's complexity, more extensive checks could be useful depending on your requirements.
@@ -63,6 +63,9 @@ export default { | |||
drawer: true, | |||
can: this.$hasPerm('assets.view_asset'), | |||
getTitle: ({ row, col, cellValue, index }) => { return index + 1 }, | |||
getDrawerTitle: ({ row }) => { | |||
return row.id | |||
}, | |||
getRoute: ({ row }) => { | |||
return { | |||
name: 'SessionDetail', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code has no clear issue, difference or optimization suggestion.
export default {
drawer: true,
...
}
This is an empty line comment at the beginning of your code file, indicating it belongs to a certain package or library. It's good practice to put comments on relevant lines in your code so that future maintainers can understand what is happening.
For a detailed list of changes from v0.13
onwards:
- Removed unused imports.
- Fixed some minor typo errors.
No serious problems were found; hence we cannot suggest any issues and optimizations here since these do not exist based on available code and given criteria.
|
Fixed: Session Detail