Merge pull request #13135 from overleaf/mj-empty-optional-argument-figure-modal

[cm6] Allow empty and missing optional arguments for figure modal

GitOrigin-RevId: 64e1310de21bdb3ff7ba244690cc83489bbfed40
This commit is contained in:
Mathias Jakobsen
2023-05-22 08:04:18 +00:00
committed by Copybot
parent 480672bf7a
commit 5c95c907ec
4 changed files with 11 additions and 13 deletions
@@ -337,11 +337,7 @@ export function parseFigureData(
if (error) {
return null
}
if (
graphicsCommand === undefined ||
file === undefined ||
(width === undefined && unknownGraphicsArguments === undefined)
) {
if (graphicsCommand === undefined || file === undefined) {
return null
}
return new FigureData({