mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-05 05:29:00 +01:00
fix: assertion clear value
This commit is contained in:
parent
b9ec0acab4
commit
0831b610cf
@ -166,7 +166,7 @@ const AssertionRow = ({
|
|||||||
handleAssertionChange(
|
handleAssertionChange(
|
||||||
{
|
{
|
||||||
target: {
|
target: {
|
||||||
value: `${op} ${value}`
|
value: isUnaryOperator(op) ? op : `${op} ${value}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
assertion,
|
assertion,
|
||||||
@ -182,7 +182,7 @@ const AssertionRow = ({
|
|||||||
theme={storedTheme}
|
theme={storedTheme}
|
||||||
readOnly={true}
|
readOnly={true}
|
||||||
onSave={onSave}
|
onSave={onSave}
|
||||||
onChange={(newValue) =>
|
onChange={(newValue) => {
|
||||||
handleAssertionChange(
|
handleAssertionChange(
|
||||||
{
|
{
|
||||||
target: {
|
target: {
|
||||||
@ -192,6 +192,7 @@ const AssertionRow = ({
|
|||||||
assertion,
|
assertion,
|
||||||
'value'
|
'value'
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onRun={handleRun}
|
onRun={handleRun}
|
||||||
collection={collection}
|
collection={collection}
|
||||||
|
Loading…
Reference in New Issue
Block a user