Skip to content

Commit

Permalink
Fix deleting fieldsets in subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 17, 2024
1 parent f948b22 commit e39f580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/FieldsetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function delete(Fieldset $fieldset)
throw new \Exception('Namespaced fieldsets cannot be deleted');
}

File::delete("{$this->directory}/{$fieldset->handle()}.yaml");
File::delete($fieldset->path());
}

public function addNamespace(string $namespace, string $directory): void
Expand Down

0 comments on commit e39f580

Please sign in to comment.