homeflowjs 1.0.11 → 1.0.12
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.
@@ -157,8 +157,8 @@ export const postBulkPropertyExposureCreation = (payload) => () => {
|
|
157
157
|
contentType = { 'Content-Type': 'application/json' };
|
158
158
|
body = JSON.stringify({ property_ids: propertyIds, domain, event_type: eventType });
|
159
159
|
}
|
160
|
-
|
161
|
-
headers = {
|
160
|
+
|
161
|
+
headers = {
|
162
162
|
...headers,
|
163
163
|
...contentType
|
164
164
|
};
|
@@ -177,6 +177,7 @@ export const loadNext = () => (dispatch, getState) => {
|
|
177
177
|
let newProperties = [...getState().properties.properties];
|
178
178
|
const nextPageSearch = { ...getState().search.initialSearch };
|
179
179
|
const currentPageNumber = getState()?.properties?.pagination?.current_page;
|
180
|
+
const branch = Homeflow.get('branch');
|
180
181
|
|
181
182
|
addToLoadedPages(currentPageNumber);
|
182
183
|
|
@@ -184,6 +185,7 @@ export const loadNext = () => (dispatch, getState) => {
|
|
184
185
|
const highestPageLoaded = sortedLoadedPages ? sortedLoadedPages[sortedLoadedPages?.length - 1] : null;
|
185
186
|
|
186
187
|
if (nextPageSearch?.place?.place_id) nextPageSearch.placeId = nextPageSearch?.place?.place_id;
|
188
|
+
if (branch?.branch_id) nextPageSearch.branch_id = branch.branch_id;
|
187
189
|
|
188
190
|
nextPageSearch.page = highestPageLoaded ? highestPageLoaded + 1 : 2;
|
189
191
|
|