Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -747,7 +747,7 @@ public class swiftApi { | ... | @@ -747,7 +747,7 @@ public class swiftApi { |
747 | } | 747 | } |
748 | 748 | ||
749 | let sortedCampaigns = filteredCampaigns.sorted { | 749 | let sortedCampaigns = filteredCampaigns.sorted { |
750 | - $0._sorting < $1._sorting | 750 | + ($0._sorting ?? 0) < ($1._sorting ?? 0) |
751 | } | 751 | } |
752 | 752 | ||
753 | getCampaignsCallback(sortedCampaigns); | 753 | getCampaignsCallback(sortedCampaigns); |
... | @@ -816,7 +816,7 @@ public class swiftApi { | ... | @@ -816,7 +816,7 @@ public class swiftApi { |
816 | } | 816 | } |
817 | 817 | ||
818 | let sortedCampaigns = filteredCampaigns.sorted { | 818 | let sortedCampaigns = filteredCampaigns.sorted { |
819 | - $0._sorting < $1._sorting | 819 | + ($0._sorting ?? 0) < ($1._sorting ?? 0) |
820 | } | 820 | } |
821 | 821 | ||
822 | getCampaignsCallback(sortedCampaigns); | 822 | getCampaignsCallback(sortedCampaigns); |
... | @@ -2770,7 +2770,7 @@ public class swiftApi { | ... | @@ -2770,7 +2770,7 @@ public class swiftApi { |
2770 | // } | 2770 | // } |
2771 | 2771 | ||
2772 | let sortedCampaigns = campaigns.sorted { | 2772 | let sortedCampaigns = campaigns.sorted { |
2773 | - $0._sorting < $1._sorting | 2773 | + ($0._sorting ?? 0) < ($1._sorting ?? 0) |
2774 | } | 2774 | } |
2775 | 2775 | ||
2776 | GlobalVariables.campaigns = sortedCampaigns | 2776 | GlobalVariables.campaigns = sortedCampaigns |
... | @@ -2914,7 +2914,7 @@ public class swiftApi { | ... | @@ -2914,7 +2914,7 @@ public class swiftApi { |
2914 | // } | 2914 | // } |
2915 | 2915 | ||
2916 | let sortedCampaigns = campaigns.sorted { | 2916 | let sortedCampaigns = campaigns.sorted { |
2917 | - $0._sorting < $1._sorting | 2917 | + ($0._sorting ?? 0) < ($1._sorting ?? 0) |
2918 | } | 2918 | } |
2919 | 2919 | ||
2920 | GlobalVariables.campaigns = sortedCampaigns | 2920 | GlobalVariables.campaigns = sortedCampaigns | ... | ... |
-
Please register or login to post a comment