We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507352d commit a27d7ddCopy full SHA for a27d7dd
Networking/Networking/Mapper/SitePluginsMapper.swift
@@ -17,7 +17,11 @@ struct SitePluginsMapper: Mapper {
17
.siteID: siteID
18
]
19
20
- return try decoder.decode(SitePluginsEnvelope.self, from: response).plugins
+ do {
21
+ return try decoder.decode(SitePluginsEnvelope.self, from: response).plugins
22
+ } catch {
23
+ return try decoder.decode([SitePlugin].self, from: response)
24
+ }
25
}
26
27
0 commit comments