fix: assertion clear value

This commit is contained in:
Pooja Belaramani 2024-12-17 21:19:34 +05:30
parent b9ec0acab4
commit 0831b610cf

View File

@ -166,7 +166,7 @@ const AssertionRow = ({
handleAssertionChange(
{
target: {
value: `${op} ${value}`
value: isUnaryOperator(op) ? op : `${op} ${value}`
}
},
assertion,
@ -182,7 +182,7 @@ const AssertionRow = ({
theme={storedTheme}
readOnly={true}
onSave={onSave}
onChange={(newValue) =>
onChange={(newValue) => {
handleAssertionChange(
{
target: {
@ -192,6 +192,7 @@ const AssertionRow = ({
assertion,
'value'
)
}
}
onRun={handleRun}
collection={collection}