Add field validation for some widgets
This commit is contained in:
1 parent
21017e4716
commit
1695fd5bee
9 files changed
+41
No files matched your search
@@ -11,12 +11,21 @@ const widget = {
|
||||
map: (data) => ({
|
||||
total: asJson(data).length,
|
||||
}),
|
||||
validate: [
|
||||
"total"
|
||||
]
|
||||
},
|
||||
queue: {
|
||||
endpoint: "queue",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
"wanted/missing": {
|
||||
endpoint: "wanted/missing",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user