mirror of
https://github.com/hexastack/hexabot
synced 2025-02-24 05:14:47 +00:00
Merge branch 'main' into 538-issue-user-module-strictnullchecks-issues
This commit is contained in:
commit
3c1f115a7c
@ -234,9 +234,7 @@ export const ContentDialog: FC<ContentDialogProps> = ({
|
|||||||
name={contentField.name}
|
name={contentField.name}
|
||||||
control={control}
|
control={control}
|
||||||
defaultValue={
|
defaultValue={
|
||||||
content
|
content ? content["dynamicFields"][contentField.name] : null
|
||||||
? content?.["dynamicFields"]?.[contentField.name]
|
|
||||||
: null
|
|
||||||
}
|
}
|
||||||
rules={
|
rules={
|
||||||
contentField.name === "title"
|
contentField.name === "title"
|
||||||
|
@ -15,13 +15,13 @@ export interface IContentAttributes {
|
|||||||
entity: string;
|
entity: string;
|
||||||
title: string;
|
title: string;
|
||||||
status: boolean;
|
status: boolean;
|
||||||
dynamicFields?: Record<string, any>;
|
dynamicFields: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IContentStub extends IBaseSchema {
|
export interface IContentStub extends IBaseSchema {
|
||||||
title: string;
|
title: string;
|
||||||
status: boolean;
|
status: boolean;
|
||||||
dynamicFields?: Record<string, any>;
|
dynamicFields: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IContent extends IContentStub, IFormat<Format.BASIC> {
|
export interface IContent extends IContentStub, IFormat<Format.BASIC> {
|
||||||
|
Loading…
Reference in New Issue
Block a user