fix(core-flows, dashboard): handling fulfillment rules (#11111)

**What**
- fix storing "true" | "false" strings from admin
- use strings instead of booleans for context filtering
This commit is contained in:
Frane Polić
2025-01-23 16:32:25 +00:00
committed by GitHub
parent b418fb129a
commit 6e5912612c
3 changed files with 53 additions and 46 deletions
@@ -151,13 +151,13 @@ export function CreateShippingOptionsForm({
rules: [
{
// eslint-disable-next-line
value: isReturn ? '"true"' : '"false"',
value: isReturn ? "true" : "false",
attribute: "is_return",
operator: "eq",
},
{
// eslint-disable-next-line
value: data.enabled_in_store ? '"true"' : '"false"',
value: data.enabled_in_store ? "true" : "false",
attribute: "enabled_in_store",
operator: "eq",
},