Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

studio: in db, delete deck attributes instead of keep null values #587

@peterpeterparker

Description

@peterpeterparker

Affected part of DeckDeckGo

  • [X ] Studio

Feature Description

A technical minor task: instead of keeping null values for background and attributes of the deck in db in case these information would be delete, remove (delete) the attributes from the doc.

Like for the background:

// @ts-ignore
 currentDeck.data.background = background && background !== undefined && background !== '' ? background : firebase.firestore.FieldValue.delete();

Metadata

Metadata

Labels

enhancementNew feature or requeststudio"Studio" is the codename for the web editor

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions