trithuc-mvc-react 1.8.0 → 1.8.2
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.
|
@@ -44,7 +44,6 @@ export function FilterElement({
|
|
|
44
44
|
onFieldChange(e);
|
|
45
45
|
handleFilterChangeDebounce(name, e.target.value);
|
|
46
46
|
}}
|
|
47
|
-
size={size}
|
|
48
47
|
placeholder={label}
|
|
49
48
|
startAdornment={
|
|
50
49
|
<InputAdornment position="start">
|
|
@@ -60,7 +59,6 @@ export function FilterElement({
|
|
|
60
59
|
{...name}
|
|
61
60
|
disablePortal
|
|
62
61
|
loading={loading}
|
|
63
|
-
size={size}
|
|
64
62
|
noOptionsText="Không có dữ liệu"
|
|
65
63
|
fullWidth
|
|
66
64
|
options={datas ?? []}
|
|
@@ -81,7 +81,7 @@ export const FilterGod = ({ filters, elementSize = "small" }) => {
|
|
|
81
81
|
}
|
|
82
82
|
return (
|
|
83
83
|
<Grid key={field} md={size?.md} xs={size?.xs} sm={size?.sm}>
|
|
84
|
-
<FilterElement name={field} {...rest}
|
|
84
|
+
<FilterElement name={field} {...rest} />
|
|
85
85
|
</Grid>
|
|
86
86
|
);
|
|
87
87
|
})}
|
|
@@ -14,7 +14,7 @@ export const TableRowRender = ({ index, row, selected, onSelect, onChangeStatus,
|
|
|
14
14
|
const { canEdit, canDelete, canView, canAction } = usePermission(tableName);
|
|
15
15
|
|
|
16
16
|
const { tableActionsOnTable, tableActionsOnMoreMenu } = useMemo(() => {
|
|
17
|
-
const tableActionsAfterFilter = [...tableActions].filter(({ permissionType }) => {
|
|
17
|
+
const tableActionsAfterFilter = [...tableActions].filter(x => x).filter(({ permissionType }) => {
|
|
18
18
|
if (permissionType == "view" && !canView) {
|
|
19
19
|
return false;
|
|
20
20
|
}
|