Improve Table typing and remove annotations on callbacks (#2981)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-22 10:42:27 -04:00
1 parent c6a4d55d86
commit 64ac04186b
59 files changed
+487 -482

No files matched your search

@@ -47,7 +47,12 @@ const resources: KubeResource[] = [
export class OverviewStatuses extends React.Component {
@boundMethod
renderWorkload(resource: KubeResource): React.ReactElement {
const store = workloadStores[resource];
const store = workloadStores.get(resource);
if (!store) {
return null;
}
const items = store.getAllByNs(namespaceStore.contextNamespaces);
return (