mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
refactor: update import paths and adjust product category type handling
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
ReturnProcessQuestion,
|
||||
ReturnProcessQuestionType,
|
||||
} from './models';
|
||||
import { CategoryQuestions, CategoryQuestionValidators } from './return-process-questions.token';
|
||||
import { CategoryQuestions, CategoryQuestionValidators } from './return-process-questions';
|
||||
import { KeyValue } from '@angular/common';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
|
||||
@@ -45,7 +45,7 @@ export const ReturnProcessStore = signalStore(
|
||||
}
|
||||
},
|
||||
|
||||
setProductCategory: (id: number, category: string) => {
|
||||
setProductCategory: (id: number, category: string | undefined) => {
|
||||
const entity = store.entityMap()[id];
|
||||
if (entity) {
|
||||
patchState(store, updateEntity({ id: entity.id, changes: { productCategory: category } }));
|
||||
|
||||
@@ -41,7 +41,7 @@ export class ReturnProcessQuestionsComponent {
|
||||
return this.#returnProcessSerivce.availableCategories();
|
||||
});
|
||||
|
||||
setProductCategory(category: string) {
|
||||
setProductCategory(category: string | undefined) {
|
||||
this.#returnProcessStore.setProductCategory(this.returnProcessId(), category);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user