Skip to content

Commit

Permalink
Made initial edit suggested by David
Browse files Browse the repository at this point in the history
I can now load a file, but the property workers didn't work. I suspect something may need to be changed in the annotation and worker APIs.
  • Loading branch information
arjunrajlab committed Dec 9, 2023
1 parent b54d65b commit cc899e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/GirderAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export default class GirderAPI {
id: string,
type: IGirderSelectAble["_modelType"]
): Promise<IGirderSelectAble> {
const config = { params: { type } };
const response = await this.client.get(`resource/${id}`, config);
const response = await this.client.get(`${type}/${id}`);
const resource = response.data;
if (resource) {
resource._modelType = type;
Expand Down

0 comments on commit cc899e0

Please sign in to comment.