Skip to content

Commit

Permalink
fix: parse sticky position on definition load
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Oct 16, 2023
1 parent 0850aa4 commit feeff84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/store/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,13 @@ export const loadFlowDefinition = (details: FlowDetails, assetStore: AssetStore)
}
}

for (const stickyUuid of Object.keys(definition._ui.stickies)) {
definition._ui.stickies[stickyUuid].position = {
left: parseFloat(definition._ui.stickies[stickyUuid].position.left as any),
top: parseFloat(definition._ui.stickies[stickyUuid].position.top as any)
};
}

// add assets we found in our flow to our asset store
const components = getFlowComponents(definition);
mergeAssetMaps(assetStore.fields.items, components.fields);
Expand Down

0 comments on commit feeff84

Please sign in to comment.