Skip to content

Commit eb686de

Browse files
Add comment explaining why we need both
Co-authored-by: Ramon Smits <ramon.smits@gmail.com>
1 parent 7a73efc commit eb686de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Frontend/src/stores/AllowedRoutesStore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ export const useAllowedRoutesStore = defineStore("AllowedRoutesStore", () => {
6868
const merged = new Map<string, ManifestEntry>();
6969
for (const list of [primary, monitoring]) {
7070
for (const entry of list ?? []) {
71-
const urlTemplate = typeof entry.url_template === "string" ? entry.url_template : typeof entry.urlTemplate === "string" ? entry.urlTemplate : undefined;
71+
// Need to support both camel as snake casing
72+
const urlTemplate = typeof entry.url_template === "string" ? entry.url_template
73+
: typeof entry.urlTemplate === "string" ? entry.urlTemplate : undefined;
7274
// Skip any entry missing a method or template rather than throwing: a single malformed
7375
// entry must never abort the load, which would leave the store unloaded and silently
7476
// fail every permission gate OPEN (showing actions the user cannot perform).

0 commit comments

Comments
 (0)