File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
src/apps/accounts/src/settings/tabs/tools Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ const ServiceProvider: FC<ServiceProviderProps> = (props: ServiceProviderProps)
9393 setSelectedServiceProviderType ( undefined )
9494 setSelectedServiceProviderName ( undefined )
9595 formElRef . current . reset ( )
96+ setIsEditMode ( false )
9697 }
9798
9899 function handleFormAction ( ) : void {
@@ -201,6 +202,8 @@ const ServiceProvider: FC<ServiceProviderProps> = (props: ServiceProviderProps)
201202 trait . name === itemToRemove ?. name && trait . serviceProviderType === itemToRemove ?. serviceProviderType
202203 ) ) || [ ]
203204
205+ resetForm ( )
206+
204207 updateMemberTraitsAsync (
205208 props . profile . handle ,
206209 [ {
@@ -301,6 +304,7 @@ const ServiceProvider: FC<ServiceProviderProps> = (props: ServiceProviderProps)
301304 label = 'Service Provider Type *'
302305 error = { formErrors . serviceProviderType }
303306 dirty
307+ placeholder = 'Select a Service Provider Type'
304308 />
305309 < InputText
306310 name = 'serviceProviderName'
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ const Software: FC<SoftwareProps> = (props: SoftwareProps) => {
8686 setSelectedSoftwareType ( undefined )
8787 setSelectedSoftwareName ( undefined )
8888 formElRef . current . reset ( )
89+ setIsEditMode ( false )
8990 }
9091
9192 function handleFormAction ( ) : void {
@@ -190,6 +191,8 @@ const Software: FC<SoftwareProps> = (props: SoftwareProps) => {
190191 trait . name === itemToRemove ?. name && trait . softwareType === itemToRemove ?. softwareType
191192 ) ) || [ ]
192193
194+ resetForm ( )
195+
193196 updateMemberTraitsAsync (
194197 props . profile . handle ,
195198 [ {
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ const Subscriptions: FC<SubscriptionsProps> = (props: SubscriptionsProps) => {
7373 function resetForm ( ) : void {
7474 setSelectedSubscriptionName ( undefined )
7575 formElRef . current . reset ( )
76+ setIsEditMode ( false )
7677 }
7778
7879 function handleFormAction ( ) : void {
@@ -175,6 +176,8 @@ const Subscriptions: FC<SubscriptionsProps> = (props: SubscriptionsProps) => {
175176 trait . name === itemToRemove ?. name
176177 ) ) || [ ]
177178
179+ resetForm ( )
180+
178181 updateMemberTraitsAsync (
179182 props . profile . handle ,
180183 [ {
You can’t perform that action at this time.
0 commit comments