fix(admin-ui): Allow backorder update on variants (#4051)
This commit is contained in:
@@ -1,2 +1,11 @@
|
||||
export const removeNullish = (obj: Record<string, unknown>) =>
|
||||
export const removeFalsy = (obj: Record<string, unknown>) =>
|
||||
Object.entries(obj).reduce((a, [k, v]) => (v ? ((a[k] = v), a) : a), {})
|
||||
|
||||
// == null is also true for undefined
|
||||
export const removeNullish = (
|
||||
obj: Record<string, unknown>
|
||||
): Record<string, unknown> =>
|
||||
Object.entries(obj).reduce(
|
||||
(a, [k, v]) => (v != null ? ((a[k] = v), a) : a),
|
||||
{}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user