formatting
This commit is contained in:
@@ -67,7 +67,7 @@ const OperatorList = () => {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
Cell: ({ row }) => <>{row.original.province_fa}</>,
|
Cell: ({ row }) => <>{row.original.province_fa}</>,
|
||||||
}
|
};
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
accessorKey: "id",
|
accessorKey: "id",
|
||||||
@@ -123,7 +123,9 @@ const OperatorList = () => {
|
|||||||
const { cityList, loadingCityList, errorCityList } = useCities(
|
const { cityList, loadingCityList, errorCityList } = useCities(
|
||||||
hasCountryPermission ? props.dependencyFieldValue.value : user.province_id
|
hasCountryPermission ? props.dependencyFieldValue.value : user.province_id
|
||||||
);
|
);
|
||||||
const [prevDependency, setPrevDependency] = useState(hasCountryPermission ? props.dependencyFieldValue.value : user.province_id);
|
const [prevDependency, setPrevDependency] = useState(
|
||||||
|
hasCountryPermission ? props.dependencyFieldValue.value : user.province_id
|
||||||
|
);
|
||||||
|
|
||||||
const getColumnSelectOptions = useMemo(() => {
|
const getColumnSelectOptions = useMemo(() => {
|
||||||
if (hasCountryPermission && props.dependencyFieldValue.value === "") {
|
if (hasCountryPermission && props.dependencyFieldValue.value === "") {
|
||||||
@@ -156,8 +158,8 @@ const OperatorList = () => {
|
|||||||
props.dependencyFieldValue?.value === ""
|
props.dependencyFieldValue?.value === ""
|
||||||
? "empty"
|
? "empty"
|
||||||
: loadingCityList
|
: loadingCityList
|
||||||
? "loading"
|
? "loading"
|
||||||
: props.filterParameters.value
|
: props.filterParameters.value
|
||||||
}
|
}
|
||||||
columnSelectOption={getColumnSelectOptions}
|
columnSelectOption={getColumnSelectOptions}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user