Skip to content

Commit

Permalink
fix(cc-domain-management): allow newly added domain to be marked as p…
Browse files Browse the repository at this point in the history
…rimary

Fixes #1213
  • Loading branch information
florian-sanders-cc committed Oct 22, 2024
1 parent b0761c1 commit 68c3961
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ defineSmartComponent({
'domainListState',
/** @param {DomainManagementListStateLoaded} domainListState */
(domainListState) => {
const hasPathPrefix = pathPrefix != null && pathPrefix !== '/';
// TODO: once the API returns actual ids, this should be adapted (either refetch or use the API response)
const id = hasPathPrefix ? hostname + pathPrefix : hostname;
const id = hostname + pathPrefix;

/** @type {DomainStateIdle} */
const newDomain = {
Expand Down

0 comments on commit 68c3961

Please sign in to comment.