mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 06:25:09 +03:00
filter fix
This commit is contained in:
parent
6e36d70875
commit
0ba490847a
@ -15,6 +15,7 @@ module.exports = recl
|
||||
key = $t.attr('data-key')
|
||||
if txt.length is 0 then txt = null
|
||||
else switch key
|
||||
when 'owner' then txt = "~#{txt}"
|
||||
when 'audience' then txt = txt.split " "
|
||||
when 'tags' then txt = [txt]
|
||||
@props.onChange key,txt
|
||||
|
@ -123,6 +123,9 @@ module.exports = recl({
|
||||
txt = null;
|
||||
} else {
|
||||
switch (key) {
|
||||
case 'owner':
|
||||
txt = "~" + txt;
|
||||
break;
|
||||
case 'audience':
|
||||
txt = txt.split(" ");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user