app/frontend/javascript/asset-comments/comment-store.js
Function commentStoreFactory
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const commentStoreFactory = function (axiosInstance, devourApi, assetId, userId) {
return {
comments: undefined,
async refreshComments() {
Function addComment
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async addComment(newTitle, newDescription) {
let payload = {
data: {
type: 'comments',
attributes: {