diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml index 822c1615f8..aa0aeffa15 100644 --- a/public/openapi/read.yaml +++ b/public/openapi/read.yaml @@ -326,7 +326,5 @@ paths: $ref: 'read/groups/slug/members.yaml' "/api/world": $ref: 'read/world.yaml' - "/api/world/{filter}": - $ref: 'read/world.yaml' /api/outgoing: $ref: 'read/outgoing.yaml' \ No newline at end of file diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml index 3cf3203ecb..2b29fbc247 100644 --- a/public/openapi/read/world.yaml +++ b/public/openapi/read/world.yaml @@ -56,16 +56,16 @@ get: # type: array # items: # type: number - # selectedTag: - # type: object - # properties: - # label: - # type: string - # nullable: true - # selectedTags: - # type: array - # items: - # type: string + selectedTag: + type: object + properties: + label: + type: string + nullable: true + selectedTags: + type: array + items: + type: string isWatched: type: boolean isTracked: diff --git a/src/categories/data.js b/src/categories/data.js index d0bec60f9c..9173e9ae9c 100644 --- a/src/categories/data.js +++ b/src/categories/data.js @@ -49,7 +49,7 @@ module.exports = function (Categories) { return category; }, {}); } - categories.splice(cids.indexOf(-1), 1, subset || worldCategory); + categories.splice(cids.indexOf(-1), 1, subset || { ...worldCategory }); } const result = await plugins.hooks.fire('filter:category.getFields', {