@sgcloud-sgsistemas/base 1.0.27 → 1.0.28
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
|
@@ -163,7 +163,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
163
163
|
|
|
164
164
|
/* Caso a search string seja maior que zero */
|
|
165
165
|
if (searchString.length > 0) {
|
|
166
|
-
|
|
166
|
+
let result = [];
|
|
167
167
|
/* Para cada item do conteudo */
|
|
168
168
|
$scope.data.forEach((element) => {
|
|
169
169
|
const elementTmp = element;
|
|
@@ -188,6 +188,11 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
188
188
|
result.push(elementTmp);
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
|
+
|
|
192
|
+
result = result.filter((subModule, index) =>
|
|
193
|
+
result.findIndex(subModule2 => subModule.name == subModule2.name) == index
|
|
194
|
+
)
|
|
195
|
+
|
|
191
196
|
$scope.result = makeAutocompleteObject(result);
|
|
192
197
|
$scope.selected = [0, 0];
|
|
193
198
|
}
|