Skip to content

Commit

Permalink
fix: add id to the generated rewrite rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Sep 6, 2024
1 parent 87a87c9 commit fd8f49a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/js/Pages/Services/Partials/TemplatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,14 @@ const mapProcessTemplate = (templateSlug, process, newIndex) => {
ports: [],
replicas: 1,
redirectRules: [],
rewriteRules: [],
fastCgi: null,
...process.data,
rewriteRules: process.data.rewriteRules?.map((rule) => {
return {
...rule,
id: makeId("rewrite-rule"),
};
}),
volumes:
process.data.volumes?.map((volume) => {
return {
Expand Down

0 comments on commit fd8f49a

Please sign in to comment.