Skip to content

Commit

Permalink
fix: add missing "extended" prop to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mulengawilfred committed Dec 23, 2024
1 parent 769a278 commit 43e4c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/beta/features/PluginPlayground/Code/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type ReearthYML = {
name: string;
description: string;
widgetLayout?: {
extended: boolean;
defaultLocation: {
zone: WidgetLocation["zone"];
section: WidgetLocation["section"];
Expand Down Expand Up @@ -144,6 +145,8 @@ export default ({ files }: Props) => {
area: "top"
};

const extended = cur.widgetLayout?.extended ?? false;

const zoneAlignSystem = prv?.alignSystem?.[zone] ?? {};
const sectionAlignSystem = zoneAlignSystem[section] ?? {};
const areaAlignSystem = sectionAlignSystem[area] ?? { widgets: [] };
Expand All @@ -162,7 +165,8 @@ export default ({ files }: Props) => {
...(areaAlignSystem.widgets ?? []),
{
id: cur.id,
__REEARTH_SOURCECODE: file.sourceCode
__REEARTH_SOURCECODE: file.sourceCode,
extended
}
]
}
Expand Down

0 comments on commit 43e4c5c

Please sign in to comment.