mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing deleted channel indicator
This commit is contained in:
parent
29f58ebf7e
commit
7f85bfb66b
@ -76,7 +76,7 @@ func GetChannels(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
for _, slot := range slots {
|
||||
if !typesSet || hasChannelType(types, slot.Channel) {
|
||||
if !typesSet || hasChannelType(types, slot.Channel) || slot.Channel == nil {
|
||||
if channelRevisionSet {
|
||||
response = append(response, getChannelRevisionModel(&slot, true))
|
||||
} else if slot.Channel != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user