-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
It appears that several functions, which are documented to return Promise<EditorResponse<null>>
, are instead returning and empty string in their parsedData
. This inconsistency affects functions such as:
SDK.layout.setPrivateData
SDK.variable.rename
SDK.canvas.setZoomPercentage
But there are more.
Steps to Reproduce
- Call any of the functions listed above.
- Observe the response object, specifically the
parsedData
field. - Note that
parsedData
is not of typenull
as expected.
Expected Behavior
According to the EditorResponse
interface, the expected structure is:
interface EditorResponse<T> {
data?: null | string;
error?: null | string;
parsedData: null | T;
status: number;
success: boolean;
}
For functions like setPrivateData
, which should return Promise<EditorResponse<null>>
, the parsedData
should be null
. The documentation for setPrivateData
can be found here.
Actual Behavior
The parsedData
field is returning an empty string, not null
, contrary to the documented return type.
MAIN Ticket
Matthiee
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working