forked from MapComplete/MapComplete
Add some tests
This commit is contained in:
parent
6f5283a2d2
commit
42012ac7f7
2 changed files with 20 additions and 9 deletions
|
@ -39,7 +39,7 @@ import {SearchablePillsSelector} from "../Input/SearchableMappingsSelector";
|
|||
*/
|
||||
export default class TagRenderingQuestion extends Combine {
|
||||
|
||||
constructor(tags: UIEventSource<any>,
|
||||
constructor(tags: UIEventSource<Record<string, string> & {id: string}>,
|
||||
configuration: TagRenderingConfig,
|
||||
state?: FeaturePipelineState,
|
||||
options?: {
|
||||
|
@ -88,7 +88,7 @@ export default class TagRenderingQuestion extends Combine {
|
|||
))
|
||||
|
||||
const save = () => {
|
||||
const selection = inputElement.GetValue().data;
|
||||
const selection = TagUtils.FlattenMultiAnswer([inputElement.GetValue().data]);
|
||||
if (selection) {
|
||||
(state?.changes)
|
||||
.applyAction(new ChangeTagAction(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue