Exclude version query params if no version specified
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
94c6a66dff
commit
400a985c11
@ -826,7 +826,7 @@ export class ApiService {
|
||||
}
|
||||
|
||||
// If online, fetch the codium and store/update it locally
|
||||
this.get(`/code/${PageId}/${NodeId}/get/${CodiumId}?version=${version}`).subscribe({
|
||||
this.get(`/code/${PageId}/${NodeId}/get/${CodiumId}${version ? '?version=' + version : ''}`).subscribe({
|
||||
next: async result => {
|
||||
if ( version ) {
|
||||
return res(result.data);
|
||||
@ -931,7 +931,8 @@ export class ApiService {
|
||||
}
|
||||
|
||||
// If online, fetch the columns and sync the local database
|
||||
this.get(`/db/${PageId}/${NodeId}/get/${DatabaseId}/columns?database_version=${databaseVersion}`).subscribe({
|
||||
this.get(`/db/${PageId}/${NodeId}/get/${DatabaseId}/columns${databaseVersion ? '?database_version=' + databaseVersion : ''}`)
|
||||
.subscribe({
|
||||
next: async results => {
|
||||
// Resolve this first, so the UI doesn't need to wait for the db sync to render
|
||||
res(results.data);
|
||||
@ -1016,7 +1017,7 @@ export class ApiService {
|
||||
}
|
||||
}
|
||||
|
||||
this.get(`/db/${PageId}/${NodeId}/get/${DatabaseId}?version=${version}`).subscribe({
|
||||
this.get(`/db/${PageId}/${NodeId}/get/${DatabaseId}${version ? '?version=' + version : ''}`).subscribe({
|
||||
next: async result => {
|
||||
if ( version ) {
|
||||
return res(result.data);
|
||||
|
Loading…
Reference in New Issue
Block a user