mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-05 13:14:47 +02:00
releaseselector: Fix selector not applied in some conditions
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5da3f894a5
commit
62d5d77167
|
@ -144,7 +144,7 @@ buildbotSetupPlugin((reg) => {
|
||||||
const prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, 'value');
|
const prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, 'value');
|
||||||
const objectDescriptor = Object.getOwnPropertyDescriptor(element, 'value');
|
const objectDescriptor = Object.getOwnPropertyDescriptor(element, 'value');
|
||||||
Object.defineProperty(element, 'value', {
|
Object.defineProperty(element, 'value', {
|
||||||
objectDescriptor,
|
...(objectDescriptor ?? prototypeDescriptor),
|
||||||
['set']: function(v) {
|
['set']: function(v) {
|
||||||
const realFunc = prototypeDescriptor['set'];
|
const realFunc = prototypeDescriptor['set'];
|
||||||
realFunc.call(this, v);
|
realFunc.call(this, v);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user