Skip to content

Commit

Permalink
[IMP] Using template literal for urls
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Sep 25, 2024
1 parent f793eeb commit 0f243ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/case.notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ function rename_folder(directory_id, new_directory=false) {

function fetchNotes(searchInput) {
// Send a GET request to the server with the search input as a parameter
get_raw_request_api('/case/notes/search?search_input=' + encodeURIComponent(searchInput) + '&cid=' + get_caseid())
get_raw_request_api(`/case/notes/search?search_input=${encodeURIComponent(searchInput)}&cid=${get_caseid()}`)
.done(data => {
if (api_request_failed(data)) {
return;
Expand Down

0 comments on commit 0f243ce

Please sign in to comment.