From 6d9982f735bbc749edccaa60a970684c17164fe9 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Fri, 23 Dec 2022 12:21:15 -0600 Subject: [PATCH] add elvis to fix invited authors editor --- client/homebrew/editor/metadataEditor/metadataEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 227993ebd..03f40e7cf 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -303,7 +303,7 @@ const MetadataEditor = createClass({ {this.renderAuthors()} !this.props.metadata.authors.includes(v)]} + validators={[(v)=>!this.props.metadata.authors?.includes(v)]} placeholder='invite author' unique={true} values={this.props.metadata.invitedAuthors} notes={['Invited authors are case sensitive.', 'After adding an invited author, send them the edit link. There, they can choose to accept or decline the invitation.']}