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( 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}