dont initialize columns when creating a table

This commit is contained in:
Shams mosowi
2020-09-04 18:53:10 +10:00
parent f6eb6229df
commit ede648c636

View File

@@ -40,7 +40,7 @@ const useSettings = () => {
//create the firetable collection doc with empty columns
db.collection("_FIRETABLE_/settings/schema")
.doc(data.collection)
.set({ ...data, columns: [] }, { merge: true });
.set({ ...data }, { merge: true });
};
const updateTable = (data: {