@monoui/vuejs 1.1.33 → 1.1.34

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -884,40 +884,40 @@ export default {
884
884
  },
885
885
  loadHistoryFilters() {
886
886
  const parameters = this.getHistoryParameters("f-");
887
+ if (!parameters) return;
888
+
887
889
  const trimName = this.getHistoryName("f-");
888
890
  const names = Object.keys(parameters);
889
- if (parameters && parameters.length > 0) {
890
- this.filters.splice(0, this.filters.length);
891
- for (const paramName of names) {
892
- const value = parameters[paramName];
893
- const column = paramName.replace(trimName, "");
894
- if (value) {
895
- this.filters.push({
896
- Column: column,
897
- Value: value
898
- });
899
- }
891
+ this.filters.splice(0, this.filters.length);
892
+ for (const paramName of names) {
893
+ const value = parameters[paramName];
894
+ const column = paramName.replace(trimName, "");
895
+ if (value) {
896
+ this.filters.push({
897
+ Column: column,
898
+ Value: value
899
+ });
900
900
  }
901
901
  }
902
902
  },
903
903
  loadHistorySorting() {
904
904
  const parameters = this.getHistoryParameters("s-");
905
+ if (!parameters) return;
906
+
905
907
  const trimName = this.getHistoryName("s-");
906
908
  const names = Object.keys(parameters);
907
- if (parameters && parameters.length > 0) {
908
- this.sorting.splice(0, this.sorting.length);
909
- for (const paramName of names) {
910
- var paramValue = parameters[paramName];
911
- let value = undefined;
912
- if (paramValue && paramValue === "1") value = true;
913
- else if (paramValue && paramValue === "0") value = false;
914
- const column = paramName.replace(trimName, "");
909
+ this.sorting.splice(0, this.sorting.length);
910
+ for (const paramName of names) {
911
+ var paramValue = parameters[paramName];
912
+ let value = undefined;
913
+ if (paramValue && paramValue === "1") value = true;
914
+ else if (paramValue && paramValue === "0") value = false;
915
+ const column = paramName.replace(trimName, "");
915
916
 
916
- this.sorting.push({
917
- Column: column,
918
- Asc: value
919
- });
920
- }
917
+ this.sorting.push({
918
+ Column: column,
919
+ Asc: value
920
+ });
921
921
  }
922
922
  },
923
923
  replaceHistory(state, storage = this.historyStorage) {