Skip to content

Commit

Permalink
Bug fixes: bool in modal + single value in filter (voxel51#2577)
Browse files Browse the repository at this point in the history
* remove the condition of disable checkbox when count is 1

* fix the boolean display issue inside regular entry for sample model

* fix the boolean format

* linting

---------

Co-authored-by: brimoor <brimoor@umich.edu>
  • Loading branch information
lanzhenw and brimoor authored Jan 30, 2023
1 parent b30ba93 commit 4dff276
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const Wrapper = ({
key={String(value)}
color={color}
value={selectedSet.has(value)}
disabled={totalCount === 1}
name={value}
count={
count < 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const Loadable = ({ path }: { path: string }) => {
const { ftype } = useRecoilValue(fos.field(path));
const color = useRecoilValue(fos.pathColor({ path, modal: true }));
const timeZone = useRecoilValue(fos.timeZone);
const formatted = format({ ftype, value, timeZone });
const formatted = format({ ftype, value, timeZone })?.toString();

return <div style={none ? { color } : {}}>{none ? "None" : formatted}</div>;
};
Expand Down

0 comments on commit 4dff276

Please sign in to comment.