mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
Fixed lint errors and add lint fix script
This commit is contained in:
@@ -276,4 +276,4 @@ export type PatchOperationsActions
|
||||
| NewPatchRemoveOperationAction
|
||||
| NewPatchReplaceOperationAction
|
||||
| RollbacktPatchOperationsAction
|
||||
| StartTransactionPatchOperationsAction
|
||||
| StartTransactionPatchOperationsAction;
|
||||
|
@@ -241,7 +241,7 @@ function hasValidBody(state: JsonPatchOperationsState, resourceType: any, resour
|
||||
return (hasValue(state[ resourceType ])
|
||||
&& hasValue(state[ resourceType ].children)
|
||||
&& hasValue(state[ resourceType ].children[ resourceId ])
|
||||
&& isNotEmpty(state[ resourceType ].children[ resourceId ].body))
|
||||
&& isNotEmpty(state[ resourceType ].children[ resourceId ].body));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -281,7 +281,7 @@ function flushOperation(state: JsonPatchOperationsState, action: FlushPatchOpera
|
||||
.filter((entry) => entry.timeAdded > state[ action.payload.resourceType ].transactionStartTime)
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
return Object.assign({}, state, {
|
||||
[action.payload.resourceType]: Object.assign({}, state[ action.payload.resourceType ], {
|
||||
|
@@ -68,7 +68,7 @@ export abstract class JsonPatchOperationsService<ResponseDefinitionDomain, Patch
|
||||
operationsList.children[key].body.forEach((entry) => {
|
||||
body.push(entry.operation);
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
return this.getRequestInstance(requestId, endpointURL, body);
|
||||
|
Reference in New Issue
Block a user