mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +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}
|
||||
control={control}
|
||||
defaultValue={
|
||||
content
|
||||
? content?.["dynamicFields"]?.[contentField.name]
|
||||
: null
|
||||
content ? content["dynamicFields"][contentField.name] : null
|
||||
}
|
||||
rules={
|
||||
contentField.name === "title"
|
||||
|
@ -15,13 +15,13 @@ export interface IContentAttributes {
|
||||
entity: string;
|
||||
title: string;
|
||||
status: boolean;
|
||||
dynamicFields?: Record<string, any>;
|
||||
dynamicFields: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface IContentStub extends IBaseSchema {
|
||||
title: string;
|
||||
status: boolean;
|
||||
dynamicFields?: Record<string, any>;
|
||||
dynamicFields: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface IContent extends IContentStub, IFormat<Format.BASIC> {
|
||||
|
Loading…
Reference in New Issue
Block a user