mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 08:42:19 +00:00
Merge pull request #2171 from overleaf/ta-console-fix
Fix Invisible JS Errors GitOrigin-RevId: 7d50fcc1517d148cc70744b1f23b3c5171d2ea62
This commit is contained in:
parent
6e7007ef3e
commit
7aae089e35
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ define(['base', 'main/project-list/services/project-list'], function(App) {
|
|||
|
||||
var recalculateProjectListHeight = function() {
|
||||
const $projListCard = $('.project-list-card')
|
||||
if (!$projListCard) return
|
||||
if (!$projListCard || !$projListCard.offset()) return
|
||||
|
||||
const topOffset = $projListCard.offset().top
|
||||
const cardPadding = $projListCard.outerHeight() - $projListCard.height()
|
||||
|
|
Loading…
Reference in a new issue