jsf.js_next_gen 4.0.0-RC.17 → 4.0.0-RC.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5983,8 +5983,10 @@ class HiddenInputBuilder {
5983
5983
  let cnt = existingStates.stream.map(state => {
5984
5984
  let ident = state.id.orElse("-1").value;
5985
5985
  ident = ident.substring(ident.lastIndexOf(SEP) + 1);
5986
- return parseInt(ident) || -1;
5987
- }).reduce((item1, item2) => Math.max(item1, item2), -1).value;
5986
+ return parseInt(ident);
5987
+ })
5988
+ .filter(item => !isNaN(item))
5989
+ .reduce((item1, item2) => Math.max(item1, item2), -1).value;
5988
5990
  //the maximum new ident is the current max + 1
5989
5991
  cnt++;
5990
5992
  const newElement = mona_dish_1.DQ.fromMarkup((0, Const_1.$nsp)(this.template));
Binary file
Binary file