@snapdragonsnursery/react-components 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -315,7 +315,7 @@ const EmployeeSearchModal = ({
|
|
|
315
315
|
setError(null);
|
|
316
316
|
|
|
317
317
|
try {
|
|
318
|
-
const functionKey =
|
|
318
|
+
const functionKey = import.meta.env.VITE_COMMON_API_FUNCTION_KEY || "";
|
|
319
319
|
|
|
320
320
|
const params = new URLSearchParams({
|
|
321
321
|
entra_id: accounts[0].localAccountId,
|
|
@@ -394,7 +394,7 @@ const EmployeeSearchModal = ({
|
|
|
394
394
|
|
|
395
395
|
const apiResponse = await fetch(
|
|
396
396
|
`${
|
|
397
|
-
|
|
397
|
+
import.meta.env.VITE_COMMON_API_BASE_URL ||
|
|
398
398
|
"https://snaps-common-api.azurewebsites.net"
|
|
399
399
|
}/api/search-employees?${params}`,
|
|
400
400
|
{
|
|
@@ -337,7 +337,7 @@ const EmployeeSearchPage = ({
|
|
|
337
337
|
setError(null);
|
|
338
338
|
|
|
339
339
|
try {
|
|
340
|
-
const functionKey =
|
|
340
|
+
const functionKey = import.meta.env.VITE_COMMON_API_FUNCTION_KEY || "";
|
|
341
341
|
|
|
342
342
|
const params = new URLSearchParams({
|
|
343
343
|
entra_id: accounts[0].localAccountId,
|
|
@@ -416,7 +416,7 @@ const EmployeeSearchPage = ({
|
|
|
416
416
|
|
|
417
417
|
const apiResponse = await fetch(
|
|
418
418
|
`${
|
|
419
|
-
|
|
419
|
+
import.meta.env.VITE_COMMON_API_BASE_URL ||
|
|
420
420
|
"https://snaps-common-api.azurewebsites.net"
|
|
421
421
|
}/api/search-employees?${params}`,
|
|
422
422
|
{
|