fixed offline recipes duplicate encoding

This commit is contained in:
Vicnet
2023-12-14 17:18:52 +01:00
parent a3fc891d0a
commit 222685e05d
3 changed files with 8 additions and 20 deletions

View File

@@ -11,6 +11,10 @@ import SwiftUI
struct Category: Codable {
let name: String
let recipe_count: Int
private enum CodingKeys: String, CodingKey {
case name, recipe_count
}
}
extension Category: Identifiable, Hashable {