- {data?.getPlugins
- .filter(
- (plugin: InterfacePluginHelper) =>
- !plugin.uninstalledOrgs.includes(orgId ?? ''),
- )
- .filter((val: InterfacePluginHelper) => {
- if (searchText === '') {
- return val;
- } else if (
- val.pluginName
- ?.toLowerCase()
- .includes(searchText.toLowerCase())
- ) {
- return val;
- }
- }).length === 0 ? (
-
{t('pMessage')}
- ) : (
- data?.getPlugins
- .filter(
- (plugin: InterfacePluginHelper) =>
- !plugin.uninstalledOrgs.includes(orgId ?? ''),
- )
- .filter((val: InterfacePluginHelper) => {
- if (searchText == '') {
- return val;
- } else if (
- val.pluginName
- ?.toLowerCase()
- .includes(searchText.toLowerCase())
- ) {
- return val;
- }
- })
- .map(
- (
- plug: InterfacePluginHelper,
- i: React.Key | null | undefined,
- ): JSX.Element => (
+
+ return (
+
+ {filteredPlugins.map((plug, i) => (
- ),
- )
- )}
+ ))}
+
+ );
+ })()}
+
+