Fix TypeError when destroying a shared folder

This commit is contained in:
yflory 2024-01-08 15:45:43 +01:00
parent 38cc88480a
commit 20df2a4d53

View file

@ -1028,7 +1028,7 @@ define([
// If this is a form wiht a answer channel, delete it too
var p = priv.propChannels;
if (p.answersChannel) {
if (p && p.answersChannel) {
sframeChan.query('Q_DELETE_OWNED', {
teamId: typeof(owned) !== "boolean" ? owned : undefined,
channel: p.answersChannel