From 0767f75ddb5a150de89586d4aa7f97b8facc8b2c Mon Sep 17 00:00:00 2001 From: Muppetteer Date: Sat, 20 Dec 2025 04:58:42 +1100 Subject: [PATCH] fix: Library icon name bug (#1934) --- .../app/features/library-creator/library-creator.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booklore-ui/src/app/features/library-creator/library-creator.component.ts b/booklore-ui/src/app/features/library-creator/library-creator.component.ts index 5c5ac6f07..32cb95afb 100644 --- a/booklore-ui/src/app/features/library-creator/library-creator.component.ts +++ b/booklore-ui/src/app/features/library-creator/library-creator.component.ts @@ -68,7 +68,8 @@ export class LibraryCreatorComponent implements OnInit { if (iconType === 'CUSTOM_SVG') { this.selectedIcon = {type: 'CUSTOM_SVG', value: icon}; } else { - this.selectedIcon = {type: 'PRIME_NG', value: `pi pi-${icon}`}; + const value = icon.slice(0, 6) === 'pi pi-' ? icon : `pi pi-${icon}`; + this.selectedIcon = {type: 'PRIME_NG', value: value}; } this.watch = watch;