mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
committed by
Copybot
parent
480672bf7a
commit
5c95c907ec
+1
-5
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user