commit 041f289a45b8a0d468c5d6b8a13a07d7dec5baf0 Author: Gavin Mogan Date: Wed Jun 30 22:55:11 2021 -0700 Remove developer.name which no longer seems to be populated diff --git a/src/components/Plugin.jsx b/src/components/Plugin.jsx index bd7de9d..8eaf5cb 100644 --- a/src/components/Plugin.jsx +++ b/src/components/Plugin.jsx @@ -58,8 +58,7 @@ Plugin.propTypes = { excerpt: PropTypes.string, labels: PropTypes.arrayOf(PropTypes.string), developers: PropTypes.arrayOf(PropTypes.shape({ - id: PropTypes.string, - name: PropTypes.string + id: PropTypes.string })), name: PropTypes.string.isRequired, requiredCore: PropTypes.string, diff --git a/src/components/PluginDevelopers.jsx b/src/components/PluginDevelopers.jsx index 8b265e7..0f85a29 100644 --- a/src/components/PluginDevelopers.jsx +++ b/src/components/PluginDevelopers.jsx @@ -6,7 +6,7 @@ function PluginDevelopers({developers}) { <> {developers.map((developer) => (
- {developer.name || developer.id} + {developer.id}
))} @@ -16,8 +16,7 @@ function PluginDevelopers({developers}) { PluginDevelopers.propTypes = { developers: PropTypes.arrayOf( PropTypes.shape({ - id: PropTypes.string.isRequired, - name: PropTypes.string, + id: PropTypes.string.isRequired }) ).isRequired }; diff --git a/src/fragments.js b/src/fragments.js index d50f49c..c35e8b0 100644 --- a/src/fragments.js +++ b/src/fragments.js @@ -45,7 +45,6 @@ export const PluginFragment = graphql` labels developers { id - name } firstRelease excerpt diff --git a/src/utils/algolia-queries.js b/src/utils/algolia-queries.js index ada4961..a89b954 100644 --- a/src/utils/algolia-queries.js +++ b/src/utils/algolia-queries.js @@ -76,7 +76,6 @@ function pluginQueries() { attributesToIndex: [ 'name', 'title', - 'developers.name', 'developers.id', ], },