Skip to content

fix(log): Fix resin isCurrentFileVersion is always true#542

Merged
mergify[bot] merged 1 commit intobox:masterfrom
mingzexiao6:fix-resin
Jul 22, 2020
Merged

fix(log): Fix resin isCurrentFileVersion is always true#542
mergify[bot] merged 1 commit intobox:masterfrom
mingzexiao6:fix-resin

Conversation

@mingzexiao6
Copy link
Contributor

Needs to merge box/box-ui-elements#2249 first.

@jstoffan
Copy link
Collaborator

This seems like a fix rather than a chore.

fileId: file.id,
fileVersionId: fileOptionsVersionId ?? fileVersionId,
isCurrentFileVersion: !fileOptionsVersionId || fileOptionsVersionId === fileVersionId,
isCurrentFileVersion: !fileOptionsVersionId || !!fileOptionsValue?.isCurrentFileVersion,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a comment for fileVersionId that it's always the currently-previewed version id?

@mingzexiao6 mingzexiao6 changed the title chore(log): Fix resin isCurrentFileVersion is always true fix(log): Fix resin isCurrentFileVersion is always true Jul 22, 2020
@mergify mergify bot merged commit 41e8797 into box:master Jul 22, 2020
@mingzexiao6 mingzexiao6 deleted the fix-resin branch August 12, 2020 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants