Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui/src/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const tooltipstore = derived(modalStore, (modals) => {

let toHandler: any
export function tooltip (node: HTMLElement, options?: LabelAndProps): any {
if (options?.label === undefined && options?.component === undefined) {
if (options === undefined || (options.label === undefined && options.component === undefined)) {
// No tooltip
// TODO: Fix reactive options update in this case
return {}
Expand Down
4 changes: 2 additions & 2 deletions plugins/drive-resources/src/components/EditFile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

$: query.query(drive.class.FileVersion, { _id: object.file }, (res) => {
;[version] = res
blob = version.file
contentType = version.type
blob = version?.file
contentType = version?.type
})

onMount(() => {
Expand Down
3 changes: 2 additions & 1 deletion plugins/workbench-resources/src/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ export async function connect (title: string): Promise<Client | undefined> {

void (async () => {
if (_client !== undefined) {
const client = _client
const newVersion = await ctx.with(
'find-version',
{},
async () => await newClient.findOne<Version>(core.class.Version, {})
async () => await client.findOne<Version>(core.class.Version, {})
)
console.log('Reconnect Model version', newVersion)

Expand Down