1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

remove comments

This commit is contained in:
Thomas Heartman 2025-09-23 13:55:46 +02:00
parent 5d979b3df3
commit 82c5ca8fef
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -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,
})); }));