Skip to content

Commit

Permalink
renamed frame_meta to frameMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Jun 6, 2023
1 parent 11db795 commit b66a296
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cvat-core/src/frames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,19 @@ FrameData.prototype.data.implementation = async function (onServerRequest) {

function getFrameMeta(jobID, frame): FramesMetaData['frames'][0] {
const { meta, mode, startFrame } = frameDataCache[jobID];
let frame_meta = null;
let frameMeta = null;
if (mode === 'interpolation') {
[frame_meta] = meta.frames;
[frameMeta] = meta.frames;
} else if (mode === 'annotation') {
if (frame > meta.stop_frame) {
throw new ArgumentError(`Meta information about frame ${frame} can't be received from the server`);
}
frame_meta = meta.frames[frame - startFrame];
frameMeta = meta.frames[frame - startFrame];
} else {
throw new DataError(`Invalid mode is specified ${mode}`);
}

return frame_meta;
return frameMeta;
}

class FrameBuffer {
Expand Down

0 comments on commit b66a296

Please sign in to comment.