NeoScript/pubsub-emulator-ui

Cant create topic when there is none

Closed this issue · 0 comments

After running the emulator, there is no topic and the api return an empty object {}, but you expect the property topics, and there is none.

So its impossible to create a new topic if there is no topic already created.

return this.http.get<{ topics: Topic[] }>(`${this.currentHost}/v1/projects/${this.project_id}/topics`).pipe(map(incoming => incoming.topics))