fix: Make SelectOptions work in dropdowns (#2617)
SelectOptions in drop downs appeared empty. FIXES: WEB-293
This commit is contained in:
@@ -3,8 +3,8 @@ export class SelectOption {
|
||||
id: number;
|
||||
name: string;
|
||||
|
||||
constructor({ id, name }: { id: number; name: string }) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
constructor(options: any[]) {
|
||||
this.id = options[0];
|
||||
this.name = options[1];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user