File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
192
192
NextDispatcher next) async {
193
193
final action = dynamicAction as RefreshData ;
194
194
final state = store.state;
195
+ final company = state.company;
195
196
196
197
if (state.isSaving || state.isLoading) {
197
198
print ('Skipping refresh request - pending request' );
@@ -210,7 +211,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
210
211
TokenEntity .unobscureToken (prefs.getString (kSharedPrefToken)) ??
211
212
'TOKEN' ;
212
213
213
- final updatedAt = action.clearData
214
+ final updatedAt = action.clearData && ! company.isLarge
214
215
? 0
215
216
: ((state.userCompanyState.lastUpdated - kMillisecondsToRefreshData) /
216
217
1000 )
@@ -226,7 +227,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
226
227
includeStatic: action.includeStatic || state.staticState.isStale,
227
228
)
228
229
.then ((data) {
229
- if (action.clearData) {
230
+ if (action.clearData && ! company.isLarge ) {
230
231
store.dispatch (ClearData ());
231
232
}
232
233
store.dispatch (LoadAccountSuccess (
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ Middleware<AppState> _loadExpenses(ExpenseRepository repository) {
224
224
store.dispatch (LoadExpensesRequest ());
225
225
repository.loadList (store.state.credentials).then ((data) {
226
226
store.dispatch (LoadExpensesSuccess (data));
227
-
228
227
if (action.completer != null ) {
229
228
action.completer.complete (null );
230
229
}
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ add_custom_command(
91
91
${FLUTTER_TOOL_ENVIRONMENT}
92
92
"${FLUTTER_ROOT} /packages/flutter_tools/bin/tool_backend.bat"
93
93
windows-x64 $<CONFIG>
94
+ VERBATIM
94
95
)
95
96
add_custom_target (flutter_assemble DEPENDS
96
97
"${FLUTTER_LIBRARY} "
You can’t perform that action at this time.
0 commit comments