Skip to content

Commit

Permalink
fix: assign created block category to loadedCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 3, 2023
1 parent 115653b commit cc9d1a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function importBlock({
if (category) {
loadedCategory = await context.pageBuilder.getBlockCategory(category?.slug);
if (!loadedCategory) {
await context.pageBuilder.createBlockCategory({
loadedCategory = await context.pageBuilder.createBlockCategory({
name: category.name,
slug: category.slug,
icon: category.icon,
Expand Down

0 comments on commit cc9d1a2

Please sign in to comment.