Fixed ical reference being reused
This commit is contained in:
parent
6466653975
commit
c221f09085
|
@ -199,7 +199,8 @@ func (c *CalDAV) GetEvents() ([]CalDAVItem, error) {
|
|||
|
||||
result := make([]CalDAVItem, 0, len(ms.Response))
|
||||
for _, p := range ms.Response {
|
||||
item := CalDAVItem{p.HRef, &p.PropStat.Prop.CalendarData}
|
||||
ical := p.PropStat.Prop.CalendarData
|
||||
item := CalDAVItem{p.HRef, &ical}
|
||||
result = append(result, item)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue