mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
remove comments
This commit is contained in:
parent
5d979b3df3
commit
82c5ca8fef
@ -34,7 +34,6 @@ const columnHelper = createColumnHelper<ChangeRequestSearchItemSchema>();
|
|||||||
const ChangeRequestsInner = () => {
|
const ChangeRequestsInner = () => {
|
||||||
const { user } = useAuthUser();
|
const { user } = useAuthUser();
|
||||||
|
|
||||||
// Check URL parameters directly to avoid double fetching
|
|
||||||
const shouldApplyDefaults = useMemo(() => {
|
const shouldApplyDefaults = useMemo(() => {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
return (
|
return (
|
||||||
@ -53,7 +52,6 @@ const ChangeRequestsInner = () => {
|
|||||||
requestedApproverId: FilterItemParam,
|
requestedApproverId: FilterItemParam,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Apply initial defaults if needed
|
|
||||||
const initialState = shouldApplyDefaults
|
const initialState = shouldApplyDefaults
|
||||||
? {
|
? {
|
||||||
createdBy: {
|
createdBy: {
|
||||||
@ -67,7 +65,6 @@ const ChangeRequestsInner = () => {
|
|||||||
updateType: 'replaceIn',
|
updateType: 'replaceIn',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Merge with initial state on first load only
|
|
||||||
const effectiveTableState = useMemo(
|
const effectiveTableState = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
...initialState,
|
...initialState,
|
||||||
@ -111,7 +108,6 @@ const ChangeRequestsInner = () => {
|
|||||||
},
|
},
|
||||||
}) => {
|
}) => {
|
||||||
const features = getValue();
|
const features = getValue();
|
||||||
// Convert string array to object array for FeaturesCell compatibility
|
|
||||||
const featureObjects = features.map((name: string) => ({
|
const featureObjects = features.map((name: string) => ({
|
||||||
name,
|
name,
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user