Commit c2cb16b1 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18393 TIME 0:20 don't reset field if default value is allowed

parent f607c829
......@@ -15,6 +15,6 @@
<img src="assets/spinner.gif"/>
</div>
</app-root>
<script src="runtime-es2015.4ac42fef445445e6f3d0.js" type="module"></script><script src="runtime-es5.4ac42fef445445e6f3d0.js" nomodule defer></script><script src="polyfills-es5.8c2a86db22bc37211976.js" nomodule defer></script><script src="polyfills-es2015.f8f86766446f4344eec7.js" type="module"></script><script src="scripts.3f995a62571f9f668311.js" defer></script><script src="main-es2015.438c03a15316ca12205e.js" type="module"></script><script src="main-es5.438c03a15316ca12205e.js" nomodule defer></script></body>
<script src="runtime-es2015.4ac42fef445445e6f3d0.js" type="module"></script><script src="runtime-es5.4ac42fef445445e6f3d0.js" nomodule defer></script><script src="polyfills-es5.8c2a86db22bc37211976.js" nomodule defer></script><script src="polyfills-es2015.f8f86766446f4344eec7.js" type="module"></script><script src="scripts.3f995a62571f9f668311.js" defer></script><script src="main-es2015.1f98856b21dae1c18954.js" type="module"></script><script src="main-es5.1f98856b21dae1c18954.js" nomodule defer></script></body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1026,12 +1026,15 @@ export class IndexingFormComponent implements OnInit {
filter((data: any) => !this.functions.empty(data)),
tap((values: any) => {
field.values = values;
field.allowedValues = values.filter((item: any) => !item.isTitle && !item.disabled).map((el: any) => el.id);
// WORK AROUND UPDATING DATA
field.type = null;
setTimeout(() => {
field.type = 'select';
}, 0);
this.arrFormControl[field.identifier].reset();
if (field.allowedValues.indexOf(field.default_value) === -1) {
this.arrFormControl[field.identifier].reset();
}
}),
catchError((err: any) => {
this.notify.handleSoftErrors(err);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment