Skip to content

Commit b4241f1

Browse files
if order is missing in config then show property at last
1 parent 4e129f6 commit b4241f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/services/configuration-control.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export class ConfigurationBase<T> {
5757
this.mandatory = options.mandatory === undefined ? 'false' : options.mandatory;
5858
this.required = options.mandatory === undefined ? false : (options.mandatory == 'true');
5959
this.editable = options.editable === undefined ? true : options.editable;
60-
this.order = options.order === undefined ? 1 : options.order;
60+
// assign a big number to the property which doesn't have 'order' key to show the property at last
61+
this.order = options.order === undefined ? 999 : options.order;
6162
this.length = options.length;
6263
this.minimum = options.minimum;
6364
this.maximum = options.maximum;

0 commit comments

Comments
 (0)