Merge pull request #164 from SyncrowIOT/return-defualt-scene-icon

Remove type filter from getAllIcons method
This commit is contained in:
faris Aljohari
2024-12-01 03:25:28 -06:00
committed by GitHub

View File

@ -385,9 +385,7 @@ export class SceneService {
async getAllIcons() { async getAllIcons() {
try { try {
const icons = await this.sceneIconRepository.find({ const icons = await this.sceneIconRepository.find();
where: { iconType: SceneIconType.Other },
});
// Remove duplicates based on 'icon' property // Remove duplicates based on 'icon' property
const uniqueIcons = icons.filter( const uniqueIcons = icons.filter(