This commit is contained in:
2026-08-27 06:06:30 +00:00
parent 43204e8441
commit 311464e593
32 changed files with 98 additions and 117 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ export class PrinterService {
private http = inject(HttpClient);
private log = inject(ErrorLoggerService);
get(id: Signal<string | null> | string | null): HttpResourceRef<Printer | undefined> {
get(id: Signal<string | null>): HttpResourceRef<Printer | undefined> {
return httpResource<Printer>(() => {
const idVal = typeof id === 'function' ? id() : id;
const idVal = id();
return idVal === null || idVal === undefined ? url : `${url}/${idVal}`;
});
}