You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the documentation, I overrode the configuration with custom backend calls for performing CRUD operations and used it in the config. While the calls are being made and responses are received, the EasyBlock component is not rendering the data.
export type Backend = {
documents: {
get: (payload: { id: string; locale?: string }) => Promise;
create: (payload: Omit<Document, "id" | "version">) => Promise;
update: (payload: Omit<Document, "type">) => Promise;
};
templates: {
get(payload: { id: string }): Promise;
getAll: () => Promise<UserDefinedTemplate[]>;
create: (payload: {
label: string;
entry: NoCodeComponentEntry;
width?: number;
widthAuto?: boolean;
}) => Promise;
update: (payload: {
id: string;
label: string;
}) => Promise<Omit<UserDefinedTemplate, "entry">>;
delete: (payload: { id: string }) => Promise;
};
};
The text was updated successfully, but these errors were encountered:
As mentioned in the documentation, I overrode the configuration with custom backend calls for performing CRUD operations and used it in the config. While the calls are being made and responses are received, the EasyBlock component is not rendering the data.
export type Backend = {
documents: {
get: (payload: { id: string; locale?: string }) => Promise;
create: (payload: Omit<Document, "id" | "version">) => Promise;
update: (payload: Omit<Document, "type">) => Promise;
};
templates: {
get(payload: { id: string }): Promise;
getAll: () => Promise<UserDefinedTemplate[]>;
create: (payload: {
label: string;
entry: NoCodeComponentEntry;
width?: number;
widthAuto?: boolean;
}) => Promise;
update: (payload: {
id: string;
label: string;
}) => Promise<Omit<UserDefinedTemplate, "entry">>;
delete: (payload: { id: string }) => Promise;
};
};
The text was updated successfully, but these errors were encountered: