mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fix bug where contact channel not getting deleted
This commit is contained in:
parent
36685f6051
commit
fa0abce7e7
@ -122,7 +122,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 {
|
||||
shared := isChannelShared(card.GUID, slot.Channel)
|
||||
if channelRevisionSet {
|
||||
response = append(response, getChannelRevisionModel(&slot, shared))
|
||||
|
Loading…
Reference in New Issue
Block a user