Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 1ed0850e
authored
2023-01-05 11:47:24 +0530
by
jay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
filter config sorted
1 parent
6d3d8442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/api/end-user/controllers/end-user.js
src/api/end-user/controllers/end-user.js
View file @
1ed0850
...
...
@@ -333,12 +333,12 @@ module.exports = factories.createCoreController(
},
],
},
}
);
let
finalProjects
=
[];
let
porjectConfiguration
=
[];
for
(
let
j
=
0
;
j
<
matchingProjects
.
length
;
j
++
)
{
const
individualProject
=
matchingProjects
[
j
];
...
...
@@ -350,7 +350,9 @@ module.exports = factories.createCoreController(
function
removeDuplicates
(
arr
)
{
return
arr
.
filter
((
item
,
index
)
=>
arr
.
indexOf
(
item
)
===
index
);
}
const
finalArray
=
removeDuplicates
(
porjectConfiguration
);
const
finalArray
=
removeDuplicates
(
porjectConfiguration
).
sort
();
console
.
log
(
"matchingProjects"
,
finalArray
);
// const matchingProjects =
ctx
.
send
({
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment