Skip to content

Commit

Permalink
fix property json and property decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
cscovinopsh committed Mar 23, 2021
1 parent bc9b64a commit c13eade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/decorators/property/property-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class PropertyDecorator {
*
* @returns {Array<{value: string, label: string}>}
*/
availableValues(): null | Array<{value: string; label: string}> {
availableValues(): null | Array<{value: string | number; label: string}> {
if (this.options.availableValues) {
return this.options.availableValues
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface PropertyJSON {
/**
* If property has restricted number of values
*/
availableValues: Array<{label: string; value: string}> | null;
availableValues: Array<{label: string; value: string | number}> | null;
/**
* Property uniq name
*/
Expand Down

0 comments on commit c13eade

Please sign in to comment.