Skip to content

Commit 85ac8cc

Browse files
committed
records-ui: fix removing community branding
* Closes #2869. * Passes "null" instead of empty string ("") as the "default" field value when removing community branding from a record.
1 parent 9d733c9 commit 85ac8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageDefaultBrandingAction/ManageDefaultBrandingAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ManageDefaultBrandingAction extends Component {
6161
labelPosition="left"
6262
icon="paint brush"
6363
floated="right"
64-
onClick={() => this.handleSetBranding("")}
64+
onClick={() => this.handleSetBranding(null)}
6565
content={i18next.t("Remove branding")}
6666
aria-label={i18next.t(
6767
"{{communityTitle}} is a default branding for this record",

0 commit comments

Comments
 (0)