Skip to content

Commit

Permalink
fix: valid notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanba authored and sunshinesmilelk committed Feb 28, 2024
1 parent e00ec11 commit 6b367f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"docs": "nx run @difizen/libro-docs:start",
"docs:build": "nx run @difizen/mana-docs:build",
"changeset": "changeset",
"clean": "git clean -fX ."
"clean": "git clean -fX .",
"tsc": "nx run-many -t typecheck:tsc"
},
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.23.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ export const DefaultDatePicker: React.FC<RenderProps<string>> = ({
}) => (
<DatePicker
value={dayjs(value, dateFormat)}
onChange={(date, dateString) => onChange(dateString)}
onChange={(date, dateString) => onChange(dateString.toString())}
/>
);
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class LibroWorkspace implements ILibroWorkspace {
@inject(LibroService) private readonly libroService: LibroService;

isValidNotebook(view: LibroView): boolean {
if ((view as any).lspEnabled === true) {
if ((view.model as any).lspEnabled === true) {
return true;
}
return false;
Expand Down

0 comments on commit 6b367f0

Please sign in to comment.