Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
merge v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gebov committed Dec 20, 2023
1 parent 459362e commit c54a2f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/nextjs-framework/editor/widget-framework/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const generateAnchorAttrsFromLink = (linkModel?: LinkModel | null, classL
return attributes;
};

export const getCustomAttributes = (attributes: { [key: string]: Array<{ Key: string, Value: string }> } | null, part: string): Dictionary => {
export const getCustomAttributes = (attributes: { [key: string]: Array<{ Key: string, Value: string }> } | null | undefined, part: string): Dictionary => {
if (!attributes || !attributes[part]){
return {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EditorMetadata } from './widget-editor-metadata';

export interface WidgetMetadata {
componentType: any;
designerMetadata: any;
designerMetadata?: any;
editorMetadata?: EditorMetadata;
entity?: any;
ssr?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ export class ClassificationEntity {
SortExpression: string | null = null;

@Attributes('Classification')
Attributes?: any[];
Attributes?: { [key: string]: Array<{ Key: string, Value: string}> };
}
2 changes: 1 addition & 1 deletion src/nextjs-framework/widgets/image/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function Image(props: WidgetContext<ImageEntity>) {
imageViewModel.SelectedImageUrl = imageItem.Thumnail.Url;

if (selectedThumbnail) {
imageViewModel.SelectedImageUrl = selectedThumbnail.Url;
imageViewModel.SelectedImageUrl = selectedThumbnail.Url as string;
imageViewModel.Width = selectedThumbnail.Width;
imageViewModel.Height = selectedThumbnail.Height;
}
Expand Down

0 comments on commit c54a2f4

Please sign in to comment.