Prevent duplicate line breaks
This commit is contained in:
parent
171ccd1960
commit
3c7a684a9e
|
|
@ -595,7 +595,7 @@ abstract class ClientEntity extends Object
|
|||
|
||||
actions.add(EntityAction.clientPortal);
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
@ -624,7 +624,7 @@ abstract class ClientEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ abstract class CompanyGatewayEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ abstract class DesignEntity extends Object
|
|||
actions.add(EntityAction.clone);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ abstract class DocumentEntity extends Object
|
|||
actions.add(EntityAction.clone);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ abstract class ExpenseCategoryEntity extends Object
|
|||
actions.add(EntityAction.edit);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ abstract class ExpenseEntity extends Object
|
|||
actions.add(EntityAction.clone);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ abstract class GatewayTokenEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ abstract class GroupEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -787,7 +787,7 @@ abstract class InvoiceEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
@ -835,7 +835,9 @@ abstract class InvoiceEntity extends Object
|
|||
actions.add(EntityAction.cloneToOther);
|
||||
}
|
||||
|
||||
actions.add(null);
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
}
|
||||
|
||||
if (userCompany.canEditEntity(this) && !isDeleted) {
|
||||
|
|
|
|||
|
|
@ -399,7 +399,7 @@ abstract class PaymentEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ abstract class ProductEntity extends Object
|
|||
actions.add(EntityAction.clone);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ abstract class ProjectEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ abstract class SubscriptionEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -578,7 +578,7 @@ abstract class TaskEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ abstract class TaskStatusEntity extends Object
|
|||
actions.add(EntityAction.edit);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ abstract class TaxRateEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ abstract class TokenEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ abstract class UserEntity extends Object
|
|||
actions.add(EntityAction.remove);
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ abstract class VendorEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ abstract class WebhookEntity extends Object
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ abstract class StubEntity extends Object with BaseEntity implements Built<StubEn
|
|||
}
|
||||
}
|
||||
|
||||
if (actions.isNotEmpty) {
|
||||
if (actions.isNotEmpty && actions.last != null) {
|
||||
actions.add(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue