wt-front-shared 1.0.61 → 1.0.62

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.
@@ -6027,11 +6027,11 @@ const _staticDataReducer$2 = createReducer(initialState$3, on(StaticDataGetList,
6027
6027
  if (!newsState['list'][staticDataType]) {
6028
6028
  newsState['list'][staticDataType] = { [storeSubSection]: {} };
6029
6029
  }
6030
- if (!keepState) {
6031
- newsState['list'][staticDataType][storeSubSection] = Array.isArray(data) ? [...data] : [];
6030
+ if (keepState && state.list[staticDataType]?.[storeSubSection]) {
6031
+ newsState['list'][staticDataType][storeSubSection] = Array.isArray(data) ? [...state.list[staticDataType][storeSubSection], ...data] : [];
6032
6032
  }
6033
6033
  else {
6034
- newsState['list'][staticDataType][storeSubSection] = Array.isArray(data) ? [...state.list[staticDataType][storeSubSection], ...data] : [];
6034
+ newsState['list'][staticDataType][storeSubSection] = Array.isArray(data) ? [...data] : [];
6035
6035
  }
6036
6036
  newsState['meta'][staticDataType] = {
6037
6037
  ...newsState['meta']?.[staticDataType],