Skip to content
Snippets Groups Projects
Commit 9c318042 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix: expected siibra api version

parent 9bf3c753
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ export const useViewer = {
} as const
export const SIIBRA_API_VERSION_HEADER_KEY='x-siibra-api-version'
export const EXPECTED_SIIBRA_API_VERSION = '0.3.17'
export const EXPECTED_SIIBRA_API_VERSION = '0.3.16'
type PaginatedResponse<T> = {
items: T[]
......@@ -286,9 +286,11 @@ export class SAPI{
tap(() => {
const respVersion = SAPI.API_VERSION
if (respVersion !== EXPECTED_SIIBRA_API_VERSION) {
this.snackbar.open(`Expecting ${EXPECTED_SIIBRA_API_VERSION}, got ${respVersion}. Some functionalities may not work as expected.`, 'Dismiss', {
duration: 5000
})
// TODO temporarily disable snackbar. Enable once siibra-api version stabilises
console.log(`Expecting ${EXPECTED_SIIBRA_API_VERSION}, got ${respVersion}. Some functionalities may not work as expected.`)
// this.snackbar.open(`Expecting ${EXPECTED_SIIBRA_API_VERSION}, got ${respVersion}. Some functionalities may not work as expected.`, 'Dismiss', {
// duration: 5000
// })
}
}),
shareReplay(1),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment