ordering-ui-react-native 0.16.12-release → 0.16.13-release
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
68
68
|
|
|
69
69
|
{
|
|
70
70
|
!category.id && categories && categories.filter(category => category.id !== null).map((category, i, _categories) => {
|
|
71
|
-
const products = categoryState.products?.filter((product: any) => product.category_id === category.id) || []
|
|
71
|
+
const products = categoryState.products?.filter((product: any) => category?.children?.some((cat: any) => cat?.category_id === product?.category_id) || product.category_id === category.id) || []
|
|
72
72
|
return (
|
|
73
73
|
<View key={`category${category.id}`} style={{ alignItems: 'flex-start', flex: 1 }}>
|
|
74
74
|
{
|
|
@@ -104,8 +104,8 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
104
104
|
<View style={{ flexDirection: 'row' }}>
|
|
105
105
|
<PlaceholderLine width={24} height={70} style={{ marginRight: 10, marginBottom: 10 }} />
|
|
106
106
|
<Placeholder style={{ paddingVertical: 10 }}>
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
<PlaceholderLine width={60} style={{ marginBottom: 25 }} />
|
|
108
|
+
<PlaceholderLine width={20} />
|
|
109
109
|
</Placeholder>
|
|
110
110
|
</View>
|
|
111
111
|
</Placeholder>
|