Skip to content

Commit e1c3b5f

Browse files
committed
fix: reject promise if error
1 parent 01e03d4 commit e1c3b5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/store/catalog/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export async function fetchFlights({ commit }, { date, departure, arrival }) {
6767
} catch (error) {
6868
console.error(error);
6969
commit("SET_LOADER", false);
70+
throw error;
7071
}
7172
}
7273

0 commit comments

Comments
 (0)