architwin 1.19.2 → 1.19.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.
|
@@ -300,7 +300,7 @@ function selectOption(option, elementId, skipToggle = false) {
|
|
|
300
300
|
const tags = getMpTags();
|
|
301
301
|
const filteredTags = filterTagList(tags);
|
|
302
302
|
const sortedTags = sortTags(filteredTags, { by: 'label', order: 'asc' });
|
|
303
|
-
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
|
|
303
|
+
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && (!tag.tag_type || tag.tag_type === TAG_TYPE.MP));
|
|
304
304
|
// remove tags that is not part in the sorted Tags
|
|
305
305
|
yield hideTagsFromSpace(removeTags);
|
|
306
306
|
// show filtered tags only
|
|
@@ -325,7 +325,7 @@ function selectOption(option, elementId, skipToggle = false) {
|
|
|
325
325
|
const tags = getMpTags();
|
|
326
326
|
const filteredTags = filterTagList(tags);
|
|
327
327
|
const sortedTags = sortTags(filteredTags, { by: 'label', order: 'asc' });
|
|
328
|
-
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
|
|
328
|
+
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && (!tag.tag_type || tag.tag_type === TAG_TYPE.MP));
|
|
329
329
|
// remove tags that is not part in the sorted Tags
|
|
330
330
|
yield hideTagsFromSpace(removeTags);
|
|
331
331
|
// show filtered tags only
|
|
@@ -380,7 +380,7 @@ function selectOption(option, elementId, skipToggle = false) {
|
|
|
380
380
|
let tags = getMpTags().filter(tag => !tag.tag_type || tag.tag_type !== TAG_TYPE.IOT);
|
|
381
381
|
const filteredTags = (_a = filterTagList(tags)) !== null && _a !== void 0 ? _a : [];
|
|
382
382
|
const sortedTags = sortTags(filteredTags.length ? filteredTags : tags, selectedTagSortOption);
|
|
383
|
-
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
|
|
383
|
+
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && (!tag.tag_type || tag.tag_type === TAG_TYPE.MP));
|
|
384
384
|
if (filteredTags.length > 0) {
|
|
385
385
|
// remove tags that is not part in the sorted Tags
|
|
386
386
|
yield hideTagsFromSpace(removeTags);
|
package/lib/atwinui/events.js
CHANGED
|
@@ -3336,13 +3336,13 @@ function handleClearSearchTagName() {
|
|
|
3336
3336
|
// const tags = getMpTags()
|
|
3337
3337
|
const tags = [..._tags];
|
|
3338
3338
|
if (selectedCategoryFilterId || selectedSubCategoryFilterId && isTagPaneActive) {
|
|
3339
|
-
const filteredTags = filterTagList(tags).filter(tag => tag.tag_type === TAG_TYPE.MP);
|
|
3339
|
+
const filteredTags = filterTagList(tags).filter(tag => !tag.tag_type || tag.tag_type === TAG_TYPE.MP);
|
|
3340
3340
|
// show filtered tags only
|
|
3341
3341
|
yield renderTagsInSpace(filteredTags, true);
|
|
3342
3342
|
renderTags(filteredTags);
|
|
3343
3343
|
}
|
|
3344
3344
|
else if (tags.length > 0 && isTagPaneActive) {
|
|
3345
|
-
const filteredMPTags = tags.filter(tag => tag.tag_type === TAG_TYPE.MP);
|
|
3345
|
+
const filteredMPTags = tags.filter(tag => !tag.tag_type || tag.tag_type === TAG_TYPE.MP);
|
|
3346
3346
|
yield renderTagsInSpace(filteredMPTags, true);
|
|
3347
3347
|
renderTags(filteredMPTags, true);
|
|
3348
3348
|
}
|
|
@@ -3368,7 +3368,7 @@ function handleSearchFromTagListButton() {
|
|
|
3368
3368
|
if (foundTag) {
|
|
3369
3369
|
if (selectedCategoryFilterId || selectedSubCategoryFilterId && isTagPaneActive) {
|
|
3370
3370
|
const filteredTags = filterTagList(foundTag);
|
|
3371
|
-
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
|
|
3371
|
+
const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && (!tag.tag_type || tag.tag_type === TAG_TYPE.MP));
|
|
3372
3372
|
log.info("removeTags", removeTags);
|
|
3373
3373
|
// remove tags that is not part in the sorted Tags
|
|
3374
3374
|
yield hideTagsFromSpace(removeTags);
|
|
@@ -3377,7 +3377,7 @@ function handleSearchFromTagListButton() {
|
|
|
3377
3377
|
renderTags(filteredTags);
|
|
3378
3378
|
}
|
|
3379
3379
|
else if (foundTag.length > 0 && isTagPaneActive) {
|
|
3380
|
-
const removeTags = tags.filter(tag => !foundTag.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
|
|
3380
|
+
const removeTags = tags.filter(tag => !foundTag.some(ft => ft.id === tag.id) && (!tag.tag_type || tag.tag_type === TAG_TYPE.MP));
|
|
3381
3381
|
log.info("removeTags", removeTags);
|
|
3382
3382
|
// remove tags that is not part in the sorted Tags
|
|
3383
3383
|
yield hideTagsFromSpace(removeTags);
|