mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: actually implement env filter for integrations
This commit is contained in:
@@ -132,6 +132,8 @@ export const IntegrationsTable = ({
|
|||||||
|
|
||||||
if (!filters.integrations.includes(integration)) return false;
|
if (!filters.integrations.includes(integration)) return false;
|
||||||
|
|
||||||
|
if (!filters.environmentIds.includes(envId)) return false;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
integration.replace("-", " ").toLowerCase().includes(search.trim().toLowerCase()) ||
|
integration.replace("-", " ").toLowerCase().includes(search.trim().toLowerCase()) ||
|
||||||
secretPath.replace("-", " ").toLowerCase().includes(search.trim().toLowerCase()) ||
|
secretPath.replace("-", " ").toLowerCase().includes(search.trim().toLowerCase()) ||
|
||||||
@@ -292,7 +294,7 @@ export const IntegrationsTable = ({
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setFilters((prev) => ({
|
setFilters((prev) => ({
|
||||||
...prev,
|
...prev,
|
||||||
integrations: prev.environmentIds.includes(env.id)
|
environmentIds: prev.environmentIds.includes(env.id)
|
||||||
? prev.environmentIds.filter((i) => i !== env.id)
|
? prev.environmentIds.filter((i) => i !== env.id)
|
||||||
: [...prev.environmentIds, env.id]
|
: [...prev.environmentIds, env.id]
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user