Skip to content

Commit

Permalink
Unique component definition path on snapshot import (#31421)
Browse files Browse the repository at this point in the history
Required since there's a uniqueness check on push.

GitOrigin-RevId: bef29e1cabd1430e9840f1a8608073f420590d40
  • Loading branch information
nipunn1313 authored and Convex, Inc. committed Nov 7, 2024
1 parent d5dd8a8 commit 4450b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/application/src/snapshot_import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2554,7 +2554,7 @@ async fn create_unmounted_component<RT: Runtime>(

let mut tx = database.begin(Identity::system()).await?;
let definition = ComponentDefinitionMetadata {
path: "_initially_unmounted".parse()?,
path: format!("{}", parent_path.join(component_name.clone())).parse()?,
definition_type: ComponentDefinitionType::ChildComponent {
name: component_name.clone(),
args: btreemap! {},
Expand Down

0 comments on commit 4450b36

Please sign in to comment.