Skip to content

Commit 00b54a2

Browse files
decyjphrCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4234c7a commit 00b54a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/plugins/rulesets.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ module.exports = class Rulesets extends Diffable {
339339
if (!match) {
340340
return this.handleError(e)
341341
}
342-
return this.update(match, attrs)
342+
const { id: _ignoredId, ...attrsWithoutId } = attrs || {}
343+
return this.update(match, attrsWithoutId)
343344
}).catch(err => this.handleError(err))
344345
}
345346

0 commit comments

Comments
 (0)