ImportEtherpad: Avoid false positives when checking apool
parent
003e5cbd4b
commit
8e9bc8d325
|
@ -54,8 +54,7 @@ exports.setPadRaw = async (padId, r) => {
|
||||||
}
|
}
|
||||||
value.padIDs = {[padId]: 1};
|
value.padIDs = {[padId]: 1};
|
||||||
} else {
|
} else {
|
||||||
// is this an attribute we support or not? If not, tell the admin
|
if (prefix === 'pad' && keyParts.length === 2 && value.pool) {
|
||||||
if (value.pool) {
|
|
||||||
for (const attrib of Object.keys(value.pool.numToAttrib)) {
|
for (const attrib of Object.keys(value.pool.numToAttrib)) {
|
||||||
const attribName = value.pool.numToAttrib[attrib][0];
|
const attribName = value.pool.numToAttrib[attrib][0];
|
||||||
if (!supportedElems.has(attribName)) unsupportedElements.add(attribName);
|
if (!supportedElems.has(attribName)) unsupportedElements.add(attribName);
|
||||||
|
|
Loading…
Reference in New Issue