Skip to content

Commit

Permalink
fix logic for endpoint query
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Dec 20, 2024
1 parent 97d07b4 commit 219797f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Function Invoke-ListGraphExplorerPresets {
}

if ($Request.Query.Endpoint) {
$Endpoint = $Request.Query.Endpoint -replace '^/', ''
$Results = $Results | Where-Object { $_.params.endpoint -eq $Endpoint }
$Endpoint = $Request.Query.Endpoint -replace '^/', ''
$Results = $Results | Where-Object { ($_.params.endpoint -replace '^/', '') -eq $Endpoint }
}
} catch {
$Results = @()
Expand Down

0 comments on commit 219797f

Please sign in to comment.