Merge pull request #4111 from overleaf/jpa-fix-re-compile-react

[frontend] fix re-compile button in react sending an event as options

GitOrigin-RevId: 69dcebc3c74c89189f18715d5adf0e6329eb1ef6
This commit is contained in:
Jakob Ackermann 2021-05-31 10:25:41 +02:00 committed by Copybot
parent 1c2314a854
commit b4d80de408

View file

@ -84,7 +84,7 @@ function PreviewRecompileButton({
id="pdf-recompile-dropdown"
className={recompileButtonGroupClasses}
>
<button className="btn btn-recompile" onClick={onRecompile}>
<button className="btn btn-recompile" onClick={() => onRecompile()}>
<Icon type="refresh" spin={isCompiling} />
<span id="text-compiling" className="toolbar-text" {...compilingProps}>