postman-collection icon indicating copy to clipboard operation
postman-collection copied to clipboard

Update variable description on upsert

Open codenirvana opened this issue 6 years ago • 2 comments

const list = new VariableList(null, [{
    key: 'k1',
    value: 'initial',
    description: 'initial description'
}]);

list.upsert({
    key: 'k1',
    value: 'updated',
    description: 'updated description'
});

list.toJSON();
// [{
//     description: {
//         content: 'initial description',
//         type: 'text/plain'
//     },
//     type: 'any',
//     value: 'updated',
//     key: 'k1'
// }]

codenirvana avatar Nov 30 '18 09:11 codenirvana

@codenirvana I could find this bug still reproducible. Can I take up this one?

csk1827 avatar Mar 07 '20 07:03 csk1827

@csk1827 Sure 👍

codenirvana avatar Mar 08 '20 11:03 codenirvana

Fixed by #1332

codenirvana avatar Sep 11 '23 12:09 codenirvana